summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-03-16 13:51:12 +1100
committerNeil Brown <neilb@suse.de>2007-03-16 13:51:12 +1100
commitf0e018fa18ac7726a67144c73e8ca0f33190b7dd (patch)
tree7a20091f1ff4f7f6bd1578c28b64a9c501e457a9
parente8c2f652125bf15f7e3c8ee3c05cd2b1b7b6af14 (diff)
downloadnfs-utils-f0e018fa18ac7726a67144c73e8ca0f33190b7dd.tar.gz
nfs-utils-f0e018fa18ac7726a67144c73e8ca0f33190b7dd.tar.xz
nfs-utils-f0e018fa18ac7726a67144c73e8ca0f33190b7dd.zip
Make mtab_head static
It is only used in one place.
-rw-r--r--support/include/fstab.h1
-rw-r--r--support/nfs/fstab.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/support/include/fstab.h b/support/include/fstab.h
index 52af743..8053066 100644
--- a/support/include/fstab.h
+++ b/support/include/fstab.h
@@ -11,7 +11,6 @@ struct mntentchn {
nfs_mntent_t m;
};
-struct mntentchn *mtab_head (void);
struct mntentchn *getmntoptfile (const char *file);
struct mntentchn *getmntdirbackward (const char *dir, struct mntentchn *mc);
struct mntentchn *getmntdevbackward (const char *dev, struct mntentchn *mc);
diff --git a/support/nfs/fstab.c b/support/nfs/fstab.c
index 8dc7d66..23ea927 100644
--- a/support/nfs/fstab.c
+++ b/support/nfs/fstab.c
@@ -83,7 +83,7 @@ static int got_mtab = 0;
static void read_mounttable(void);
-struct mntentchn *
+static struct mntentchn *
mtab_head() {
if (!got_mtab)
read_mounttable();