summaryrefslogtreecommitdiffstats
path: root/source/utils/nmblookup.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-11-19 02:49:53 +0000
committerMartin Pool <mbp@samba.org>2001-11-19 02:49:53 +0000
commit79ec88f0da40faebe1e587f1b3e87b5f2b184f58 (patch)
treea23afbb4a9526bc68e30350d800a9a086b735572 /source/utils/nmblookup.c
parent91e07a7fdc47b2baf42fc06e77d1e1d883111668 (diff)
downloadsamba-79ec88f0da40faebe1e587f1b3e87b5f2b184f58.tar.gz
samba-79ec88f0da40faebe1e587f1b3e87b5f2b184f58.tar.xz
samba-79ec88f0da40faebe1e587f1b3e87b5f2b184f58.zip
Store some path names in global variables initialized to configure
default, rather than in preprocessor macros.
Diffstat (limited to 'source/utils/nmblookup.c')
-rw-r--r--source/utils/nmblookup.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/utils/nmblookup.c b/source/utils/nmblookup.c
index ceec1859e78..44f0558bf6c 100644
--- a/source/utils/nmblookup.c
+++ b/source/utils/nmblookup.c
@@ -193,7 +193,6 @@ int main(int argc,char *argv[])
extern char *optarg;
BOOL find_master=False;
int i;
- static pstring servicesf = CONFIGFILE;
BOOL lookup_by_ip = False;
int commandline_debuglevel = -2;
@@ -240,7 +239,7 @@ int main(int argc,char *argv[])
commandline_debuglevel = DEBUGLEVEL = atoi(optarg);
break;
case 's':
- pstrcpy(servicesf, optarg);
+ pstrcpy(dyn_CONFIGFILE, optarg);
break;
case 'r':
RootPort = True;
@@ -262,8 +261,8 @@ int main(int argc,char *argv[])
exit(1);
}
- if (!lp_load(servicesf,True,False,False)) {
- fprintf(stderr, "Can't load %s - run testparm to debug it\n", servicesf);
+ if (!lp_load(dyn_CONFIGFILE,True,False,False)) {
+ fprintf(stderr, "Can't load %s - run testparm to debug it\n", dyn_CONFIGFILE);
}
/*