Removed version number from file header.
[ira/wip.git] / source3 / torture / rpctorture.c
index b61bfb639e235c05305be3e8d565930bef67ac6a..d984ea28421eff1a97a4ff118638081d7e45185b 100644 (file)
@@ -1,6 +1,5 @@
 /* 
-   Unix SMB/Netbios implementation.
-   Version 1.9.
+   Unix SMB/CIFS implementation.
    SMB client
    Copyright (C) Andrew Tridgell 1994-1998
    
@@ -30,8 +29,6 @@ extern pstring global_myname;
 extern pstring user_socket_options;
 
 
-extern pstring debugf;
-
 extern file_info def_finfo;
 
 #define CNV_LANG(s) dos2unix_format(s,False)
@@ -225,7 +222,6 @@ enum client_action
        int opt;
        extern char *optarg;
        extern int optind;
-       static pstring servicesf = CONFIGFILE;
        pstring term_code;
        BOOL got_pass = False;
        char *cmd_str="";
@@ -233,6 +229,7 @@ enum client_action
        enum client_action cli_action = CLIENT_NONE;
        int nprocs = 1;
        int numops = 100;
+       pstring logfile;
 
        struct client_info cli_info;
 
@@ -246,9 +243,9 @@ enum client_action
        *term_code = 0;
 #endif /* KANJI */
 
-       if (!lp_load(servicesf,True, False, False))
+       if (!lp_load(dyn_CONFIGFILE,True, False, False))
        {
-               fprintf(stderr, "Can't load %s - run testparm to debug it\n", servicesf);
+               fprintf(stderr, "Can't load %s - run testparm to debug it\n", dyn_CONFIGFILE);
        }
 
        DEBUGLEVEL = 0;
@@ -293,8 +290,6 @@ enum client_action
 
        setup_logging(pname, True);
 
-       TimeInit();
-
        myumask = umask(0);
        umask(myumask);
 
@@ -412,7 +407,7 @@ enum client_action
                        case 'I':
                        {
                                cli_info.dest_ip = *interpret_addr2(optarg);
-                               if (zero_ip(cli_info.dest_ip))
+                               if (is_zero_ip(cli_info.dest_ip))
                                {
                                        exit(1);
                                }
@@ -448,8 +443,9 @@ enum client_action
 
                        case 'l':
                        {
-                               slprintf(debugf, sizeof(debugf)-1,
+                               slprintf(logfile, sizeof(logfile)-1,
                                         "%s.client",optarg);
+                               lp_set_logfile(logfile);
                                break;
                        }
 
@@ -469,7 +465,7 @@ enum client_action
 
                        case 's':
                        {
-                               pstrcpy(servicesf, optarg);
+                               pstrcpy(dyn_CONFIGFILE, optarg);
                                break;
                        }