summaryrefslogtreecommitdiffstats
path: root/support/export/export.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2010-06-22 12:43:55 -0400
committerSteve Dickson <steved@redhat.com>2010-06-22 16:04:53 -0400
commit8940675a20967145b37a596334c25a54804435cc (patch)
treeae7781137ec1b4a4f7fad34b420fe4495791ad6e /support/export/export.c
parent0509d3428f523776ddd9d6e9fa318587d3ec7d84 (diff)
downloadnfs-utils-8940675a20967145b37a596334c25a54804435cc.tar.gz
nfs-utils-8940675a20967145b37a596334c25a54804435cc.tar.xz
nfs-utils-8940675a20967145b37a596334c25a54804435cc.zip
libexport.a: Make export_read() return void
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>
Diffstat (limited to 'support/export/export.c')
-rw-r--r--support/export/export.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/support/export/export.c b/support/export/export.c
index 919a244..1800efd 100644
--- a/support/export/export.c
+++ b/support/export/export.c
@@ -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;
}
/*