diff options
author | Steve Dickson <steved@redhat.com> | 2012-03-12 15:39:19 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2012-03-12 15:41:20 -0400 |
commit | c58b9cf71f4b8d03e31a7b9b35a4bc6553761336 (patch) | |
tree | 85c02e149c782bb315aab284185f849dcdc103df /utils/exportfs | |
parent | 36931bf93d4316608c0f5935cf489c9b3d15e921 (diff) | |
download | nfs-utils-c58b9cf71f4b8d03e31a7b9b35a4bc6553761336.tar.gz nfs-utils-c58b9cf71f4b8d03e31a7b9b35a4bc6553761336.tar.xz nfs-utils-c58b9cf71f4b8d03e31a7b9b35a4bc6553761336.zip |
exportfs: Removed warnings about routines not being prototyped
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/exportfs')
-rw-r--r-- | utils/exportfs/exportfs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c index 7326802..a3323d7 100644 --- a/utils/exportfs/exportfs.c +++ b/utils/exportfs/exportfs.c @@ -44,6 +44,8 @@ static void usage(const char *progname); static void validate_export(nfs_export *exp); static int matchhostname(const char *hostname1, const char *hostname2); static void export_d_read(const char *dname); +static void grab_lockfile(void); +static void release_lockfile(void); static const char *lockfile = EXP_LOCKFILE; static int _lockfd = -1; @@ -64,14 +66,14 @@ static int _lockfd = -1; * corrupting etab, but to prevent problems like the above we * need these additional lockfile() routines. */ -void +static void grab_lockfile() { _lockfd = open(lockfile, O_CREAT|O_RDWR, 0666); if (_lockfd != -1) lockf(_lockfd, F_LOCK, 0); } -void +static void release_lockfile() { if (_lockfd != -1) |