diff options
author | Justin Mitchell <jumitche@rehat.com> | 2017-05-05 11:03:20 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2017-05-05 11:04:19 -0400 |
commit | 7b33590fee9515e49cda460285acc5d347a800b5 (patch) | |
tree | 8f6f30a0671155e93c5029f15c37181755aa3704 /utils/nfsd/nfsd.c | |
parent | 06bbb4ee6f5186e8e83d50767ad5b3b41968e5a6 (diff) | |
download | nfs-utils-7b33590fee9515e49cda460285acc5d347a800b5.tar.gz nfs-utils-7b33590fee9515e49cda460285acc5d347a800b5.tar.xz nfs-utils-7b33590fee9515e49cda460285acc5d347a800b5.zip |
config: Remove the conf_path global
Working towards an nfs.conf library and API for system config tools,
first step, replace the conf_path global with a parameter to conf_init
Signed-off-by: Justin Mitchell <jumitche@rehat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/nfsd/nfsd.c')
-rw-r--r-- | utils/nfsd/nfsd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c index cea850d..111058f 100644 --- a/utils/nfsd/nfsd.c +++ b/utils/nfsd/nfsd.c @@ -34,8 +34,6 @@ #define NFSD_NPROC 8 #endif -char *conf_path = NFS_CONFFILE; - static void usage(const char *); static struct option longopts[] = @@ -82,7 +80,7 @@ main(int argc, char **argv) xlog_syslog(0); xlog_stderr(1); - conf_init(); + conf_init(NFS_CONFFILE); xlog_from_conffile("nfsd"); count = conf_get_num("nfsd", "threads", count); grace = conf_get_num("nfsd", "grace-time", grace); |