X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=support%2Fexport%2Fexport.c;h=eca833c6762f855914748a30cab617c099d78cbc;hb=53928c0166dcc0acceaa995edb8551b48968b5dd;hp=919a2442a32f498d6437b435a4e72999d238edb5;hpb=0509d3428f523776ddd9d6e9fa318587d3ec7d84;p=nfs-utils.git diff --git a/support/export/export.c b/support/export/export.c index 919a244..eca833c 100644 --- a/support/export/export.c +++ b/support/export/export.c @@ -24,6 +24,7 @@ static int export_hash(char *); static void export_init(nfs_export *exp, nfs_client *clp, struct exportent *nep); +static void export_add(nfs_export *exp); static int export_check(const nfs_export *exp, const struct addrinfo *ai, const char *path); static nfs_export * @@ -58,7 +59,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 +79,6 @@ export_read(char *fname) warn_duplicated_exports(exp, eep); } endexportent(); - return 0; } /* @@ -147,10 +152,7 @@ export_dup(nfs_export *exp, const struct addrinfo *ai) return new; } -/* - * Add export entry to hash table - */ -void +static void export_add(nfs_export *exp) { exp_hash_table *p_tbl;