summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-20 00:02:15 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:52:06 +0100
commit0500b87092540d300b4e021a0fb95ce16a44fbd2 (patch)
treed8ff9774916e84dbc568f77edd4925b1f6b51735 /source4/utils
parent3e75f222bcdf114238cc4f2bcc61332dc059135f (diff)
downloadsamba-0500b87092540d300b4e021a0fb95ce16a44fbd2.tar.gz
samba-0500b87092540d300b4e021a0fb95ce16a44fbd2.tar.bz2
samba-0500b87092540d300b4e021a0fb95ce16a44fbd2.zip
r26540: Revert my previous commit after concerns raised by Andrew.
(This used to be commit 6ac86f8be7d9a8c5ab396a93e6d1e6819e11f173)
Diffstat (limited to 'source4/utils')
-rw-r--r--source4/utils/ntlm_auth.c2
-rw-r--r--source4/utils/testparm.c16
2 files changed, 9 insertions, 9 deletions
diff --git a/source4/utils/ntlm_auth.c b/source4/utils/ntlm_auth.c
index b85ddec7d0..3144fe91b1 100644
--- a/source4/utils/ntlm_auth.c
+++ b/source4/utils/ntlm_auth.c
@@ -1048,7 +1048,7 @@ enum {
int main(int argc, const char **argv)
{
- const char *helper_protocol;
+ static const char *helper_protocol;
int opt;
poptContext pc;
diff --git a/source4/utils/testparm.c b/source4/utils/testparm.c
index 718daae908..a4ff522186 100644
--- a/source4/utils/testparm.c
+++ b/source4/utils/testparm.c
@@ -172,18 +172,18 @@ static int do_share_checks(struct loadparm_context *lp_ctx, const char *cname, c
int main(int argc, const char *argv[])
{
- bool silent_mode = false;
+ static bool silent_mode = false;
int ret = 0;
poptContext pc;
/*
- int show_all_parameters = 0;
- char *new_local_machine = NULL;
+ static int show_all_parameters = 0;
+ static char *new_local_machine = NULL;
*/
- const char *section_name = NULL;
- char *parameter_name = NULL;
- const char *cname = NULL;
- const char *caddr = NULL;
- bool show_defaults = false;
+ static const char *section_name = NULL;
+ static char *parameter_name = NULL;
+ static const char *cname;
+ static const char *caddr;
+ static bool show_defaults = false;
struct loadparm_context *lp_ctx;
struct poptOption long_options[] = {