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 *
}
}
-int
+/**
+ * export_read - read entries from /etc/exports
+ * @fname: name of file to read from
+ *
+ */
+void
export_read(char *fname)
{
struct exportent *eep;
warn_duplicated_exports(exp, eep);
}
endexportent();
- return 0;
}
/*
return new;
}
-/*
- * Add export entry to hash table
- */
-void
+static void
export_add(nfs_export *exp)
{
exp_hash_table *p_tbl;