]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
libexport.a: Make export_read() return void
authorChuck Lever <chuck.lever@oracle.com>
Tue, 22 Jun 2010 16:43:55 +0000 (12:43 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 22 Jun 2010 20:04:53 +0000 (16:04 -0400)
Clean up: export_read()'s return value is always zero, and its only
caller never checks it.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/export/export.c
support/include/exportfs.h

index 919a2442a32f498d6437b435a4e72999d238edb5..1800efd1622d1d4ddb9221a0844718adc0c67956 100644 (file)
@@ -58,7 +58,12 @@ static void warn_duplicated_exports(nfs_export *exp, struct exportent *eep)
        }
 }
 
-int
+/**
+ * export_read - read entries from /etc/exports
+ * @fname: name of file to read from
+ *
+ */
+void
 export_read(char *fname)
 {
        struct exportent        *eep;
@@ -73,7 +78,6 @@ export_read(char *fname)
                        warn_duplicated_exports(exp, eep);
        }
        endexportent();
-       return 0;
 }
 
 /*
index 0da85666c6dab49cb09ca442575db5b87c447f33..8e548334e3c0ea7b79a2022a16f9f0c768d1f5da 100644 (file)
@@ -128,7 +128,7 @@ struct addrinfo *           client_resolve(const struct sockaddr *sap);
 int                            client_member(const char *client,
                                                const char *name);
 
-int                            export_read(char *fname);
+void                           export_read(char *fname);
 void                   export_add(nfs_export *);
 void                           export_reset(nfs_export *);
 nfs_export *                   export_lookup(char *hname, char *path, int caconical);