Changeset 1161 for pjproject


Ignore:
Timestamp:
Apr 6, 2007 10:35:41 AM (18 years ago)
Author:
bennylp
Message:

Added missing NULL getopt sentitel in stateful/stateless proxy samples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/proxy.h

    r1131 r1161  
    5454    puts("Options:\n" 
    5555         "\n" 
    56          " --port N       Set local listener port to N\n" 
    57          " --rr           Perform record routing\n" 
    58          " --log-level N  Set log level to N (default: 4)\n" 
    59          " --help         Show this help screen\n" 
     56         " -p, --port N       Set local listener port to N\n" 
     57         " -R, --rr           Perform record routing\n" 
     58         " -L, --log-level N  Set log level to N (default: 4)\n" 
     59         " -h, --help         Show this help screen\n" 
    6060         ); 
    6161} 
     
    6969        { "log-level",  1, 0, 'L'}, 
    7070        { "help",       0, 0, 'h'}, 
     71        { NULL,         0, 0, 0} 
    7172    }; 
    7273    int c; 
     
    7475 
    7576    pj_optind = 0; 
    76     while((c=pj_getopt_long(argc, argv, "", long_opt, &opt_ind))!=-1) { 
     77    while((c=pj_getopt_long(argc, argv, "p:L:Rh", long_opt, &opt_ind))!=-1) { 
    7778        switch (c) { 
    7879        case 'p': 
Note: See TracChangeset for help on using the changeset viewer.