summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-03-25 13:40:34 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-03-25 13:40:34 +0000
commitf97934e3f517ecf0e894763c4e1156d3ebd77686 (patch)
treefd1b98e5b20f899cd0ddc11f25f550ec1ec985ab
parent403ee6701b145574ccfd39e67185a3d247ebaa70 (diff)
downloadsamba-f97934e3f517ecf0e894763c4e1156d3ebd77686.tar.gz
samba-f97934e3f517ecf0e894763c4e1156d3ebd77686.tar.bz2
samba-f97934e3f517ecf0e894763c4e1156d3ebd77686.zip
Make variables static to satisfy exotic compilers
(This used to be commit 094eed2c6222fe167ee9f596f4b849a4dea234bf)
-rw-r--r--source3/utils/nmblookup.c4
-rw-r--r--source3/utils/testparm.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/source3/utils/nmblookup.c b/source3/utils/nmblookup.c
index 85f092c8b0..31c7967a07 100644
--- a/source3/utils/nmblookup.c
+++ b/source3/utils/nmblookup.c
@@ -187,8 +187,8 @@ int main(int argc,char *argv[])
int opt;
unsigned int lookup_type = 0x0;
fstring lookup;
- BOOL find_master=False;
- BOOL lookup_by_ip = False;
+ static BOOL find_master=False;
+ static BOOL lookup_by_ip = False;
poptContext pc;
struct poptOption long_options[] = {
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c
index 4c8a2ccf63..e8dd3c15b2 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -192,7 +192,6 @@ via the %%o substitution. With encrypted passwords this is not possible.\n", lp_
int s;
static BOOL silent_mode = False;
int ret = 0;
- int opt;
poptContext pc;
static const char *term_code = "";
static char *new_local_machine = NULL;