s4: popt: Make cmdline_credentials static.
authorJeremy Allison <jra@samba.org>
Tue, 9 May 2017 23:14:03 +0000 (16:14 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 11 May 2017 18:30:13 +0000 (20:30 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/lib/cmdline/popt_common.c
source4/lib/cmdline/popt_common.h

index 59f06e8ba2527962cddc4e93faac5f4ebef62c25..5fce312ac7b2027b1f7caec70c804078762270c7 100644 (file)
@@ -38,7 +38,7 @@
 
 enum {OPT_OPTION=1,OPT_LEAK_REPORT,OPT_LEAK_REPORT_FULL,OPT_DEBUG_STDERR};
 
-struct cli_credentials *cmdline_credentials = NULL;
+static struct cli_credentials *cmdline_credentials = NULL;
 
 void popt_set_cmdline_credentials(struct cli_credentials *creds)
 {
index d1f764a0df9a0c1cae495b08511cf69807af031e..4271aa477e6d8b4e3b43bcc0123bf24b16b4e339 100644 (file)
@@ -37,7 +37,8 @@ extern struct poptOption popt_common_credentials4[];
 #define POPT_COMMON_VERSION { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_version4, 0, "Version options:", NULL },
 #define POPT_COMMON_CREDENTIALS { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_credentials4, 0, "Authentication options:", NULL },
 
-extern struct cli_credentials *cmdline_credentials;
+struct cli_credentials;
+
 void popt_set_cmdline_credentials(struct cli_credentials *creds);
 struct cli_credentials *popt_get_cmdline_credentials(void);
 void popt_free_cmdline_credentials(void);