r20245: merge 20244 from samba_3_0_24
authorHerb Lewis <herb@samba.org>
Mon, 18 Dec 2006 20:37:26 +0000 (20:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:16:36 +0000 (12:16 -0500)
get rid of more nested extern declarations warnings
(This used to be commit e9df051f5201843e3428ddbed7a719553c2e799a)

source3/nsswitch/winbindd_cm.c
source3/printing/print_cups.c
source3/torture/locktest.c
source3/torture/locktest2.c
source3/torture/masktest.c

index a18f5cf31be99a20f95a05da0c48807d593983bd..0a0dc63bca4b6db72db857a9644c6fd9f51d5ca3 100644 (file)
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_WINBIND
 
-extern struct winbindd_methods reconnect_methods;
-
 struct dc_name_ip {
        fstring name;
        struct in_addr ip;
 };
 
+extern struct winbindd_methods reconnect_methods;
+extern BOOL override_logfile;
+
 static NTSTATUS init_dc_connection_network(struct winbindd_domain *domain);
 static void set_dc_type_and_flags( struct winbindd_domain *domain );
 static BOOL get_dcs(TALLOC_CTX *mem_ctx, const struct winbindd_domain *domain,
@@ -160,7 +161,6 @@ static void msg_try_to_go_online(int msg_type, struct process_id src, void *buf,
 
 static BOOL fork_child_dc_connect(struct winbindd_domain *domain)
 {
-       extern BOOL override_logfile;
        struct dc_name_ip *dcs = NULL;
        int num_dcs = 0;
        TALLOC_CTX *mem_ctx = NULL;
index 138f58d0c8cd5f6e7a343b3d7e2466f598a29541..2c942627c6bae50efef8d824cc3b250c5e57824a 100644 (file)
@@ -25,6 +25,7 @@
 #include <cups/cups.h>
 #include <cups/language.h>
 
+extern userdom_struct current_user_info;
 
 /*
  * 'cups_passwd_cb()' - The CUPS password callback...
@@ -1006,7 +1007,6 @@ static int cups_queue_get(const char *sharename,
 
 static int cups_queue_pause(int snum)
 {
-       extern userdom_struct current_user_info;
        int             ret = 1;                /* Return value */
        http_t          *http = NULL;           /* HTTP connection to server */
        ipp_t           *request = NULL,        /* IPP Request */
@@ -1098,7 +1098,6 @@ static int cups_queue_pause(int snum)
 
 static int cups_queue_resume(int snum)
 {
-       extern userdom_struct current_user_info;
        int             ret = 1;                /* Return value */
        http_t          *http = NULL;           /* HTTP connection to server */
        ipp_t           *request = NULL,        /* IPP Request */
index c3200ca038c7e195c6ff233d4cd607bf460dbdcb..31fd0225f8730fa4330d649a4999f203bdcddf52 100644 (file)
@@ -36,6 +36,9 @@ static unsigned min_length = 0;
 static BOOL exact_error_codes;
 static BOOL zero_zero;
 
+extern char *optarg;
+extern int optind;
+
 #define FILENAME "\\locktest.dat"
 
 #define READ_PCT 50
@@ -581,8 +584,6 @@ static void usage(void)
  int main(int argc,char *argv[])
 {
        char *share[NSERVERS];
-       extern char *optarg;
-       extern int optind;
        int opt;
        char *p;
        int seed, server;
index 5f2f2499acd3ce8350fe9e7a1a6c344dc88c3c24..0a897fb206553fde7e51b893d52f44d2aace667f 100644 (file)
@@ -29,6 +29,9 @@ static BOOL analyze;
 static BOOL hide_unlock_fails;
 static BOOL use_oplocks;
 
+extern char *optarg;
+extern int optind;
+
 #define FILENAME "\\locktest.dat"
 #define LOCKRANGE 100
 #define LOCKBASE 0
@@ -471,8 +474,6 @@ static void usage(void)
  int main(int argc,char *argv[])
 {
        char *share1, *share2, *nfspath1, *nfspath2;
-       extern char *optarg;
-       extern int optind;
        int opt;
        char *p;
        int seed;
index 2ce59c86e65c118335b31321030eee960692f2b4..f97fb97542e8519fd93e7f12eafd5746c51d7ffb 100644 (file)
@@ -33,6 +33,10 @@ static int die_on_error;
 static int NumLoops = 0;
 static int ignore_dot_errors = 0;
 
+extern char *optarg;
+extern int optind;
+extern BOOL AllowDebugChange;
+
 /* a test fn for LANMAN mask support */
 int ms_fnmatch_lanman_core(const char *pattern, const char *string)
 {
@@ -426,9 +430,6 @@ static void usage(void)
 {
        char *share;
        struct cli_state *cli;  
-       extern char *optarg;
-       extern int optind;
-       extern BOOL AllowDebugChange;
        int opt;
        char *p;
        int seed;