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 /systemd/rpc-pipefs-generator.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 'systemd/rpc-pipefs-generator.c')
-rw-r--r-- | systemd/rpc-pipefs-generator.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/systemd/rpc-pipefs-generator.c b/systemd/rpc-pipefs-generator.c index 66addb9..59eee87 100644 --- a/systemd/rpc-pipefs-generator.c +++ b/systemd/rpc-pipefs-generator.c @@ -22,7 +22,6 @@ #include "systemd.h" #define RPC_PIPEFS_DEFAULT "/var/lib/nfs/rpc_pipefs" -char *conf_path = NFS_CONFFILE; static int generate_mount_unit(const char *pipefs_path, const char *pipefs_unit, const char *dirname) @@ -122,7 +121,7 @@ int main(int argc, char *argv[]) exit(1); } - conf_init(); + conf_init(NFS_CONFFILE); s = conf_get_str("general", "pipefs-directory"); if (!s) exit(0); |