From f0e018fa18ac7726a67144c73e8ca0f33190b7dd Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 16 Mar 2007 13:51:12 +1100 Subject: [PATCH] Make mtab_head static It is only used in one place. --- support/include/fstab.h | 1 - support/nfs/fstab.c | 2 +- 2 files changed, 1 insertion(+), 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(); -- 2.39.2