Ignore:
Timestamp:
Mar 25, 2007, 5:18:51 PM (19 years ago)
Author:
Yuri Dario
Message:

Source code upgrade to 3.0.25pre2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/utils/smbcontrol.c

    r1 r22  
    11461146        int opt;
    11471147
    1148         static struct poptOption wbinfo_options[] = {
     1148        static struct poptOption long_options[] = {
     1149                POPT_AUTOHELP
    11491150                { "timeout", 't', POPT_ARG_INT, &timeout, 't',
    11501151                  "Set timeout value in seconds", "TIMEOUT" },
    11511152
    1152                 { "configfile", 's', POPT_ARG_STRING, NULL, 's',
    1153                   "Use alternative configuration file", "CONFIGFILE" },
    1154 
    1155                 POPT_TABLEEND
    1156         };
    1157 
    1158         struct poptOption options[] = {
    1159                 { NULL, 0, POPT_ARG_INCLUDE_TABLE, wbinfo_options, 0,
    1160                   "Options" },
    1161 
    1162                 POPT_AUTOHELP
    1163                 POPT_COMMON_VERSION
     1153                POPT_COMMON_SAMBA
    11641154                POPT_TABLEEND
    11651155        };
     
    11721162
    11731163        pc = poptGetContext(
    1174                 "smbcontrol", argc, (const char **)argv, options, 0);
     1164                "smbcontrol", argc, (const char **)argv, options, 0);
    11751165
    11761166        poptSetOtherOptionHelp(pc, "[OPTION...] <destination> <message-type> "
     
    11831173                switch(opt) {
    11841174                case 't':       /* --timeout */
    1185                         argc -= 2;
    1186                         break;
    1187                 case 's':       /* --configfile */
    1188                         pstrcpy(dyn_CONFIGFILE, poptGetOptArg(pc));
    1189                         argc -= 2;
    11901175                        break;
    11911176                default:
     
    12011186
    12021187        argv = (const char **)poptGetArgs(pc);
    1203         argc--;                 /* Don't forget about argv[0] */
     1188        argc = 0;
     1189        while (argv[argc] != NULL) {
     1190                argc++;
     1191        }
    12041192
    12051193        if (argc == 1)
Note: See TracChangeset for help on using the changeset viewer.