From: Neil Brown Date: Fri, 16 Mar 2007 02:51:12 +0000 (+1100) Subject: Make mtab_head static X-Git-Tag: nfs-utils-1-1-0-rc1~72 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=f0e018fa18ac7726a67144c73e8ca0f33190b7dd;p=nfs-utils.git Make mtab_head static It is only used in one place. --- 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();