Changeset 545
- Timestamp:
- 02/11/10 14:42:19 (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
configure (modified) (10 diffs)
-
src/ocat.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r544 r545 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.62 for onioncat 0.2.2.r54 4.3 # Generated by GNU Autoconf 2.62 for onioncat 0.2.2.r545. 4 4 # 5 5 # Report bugs to <rahra@cypherpunk.at>. … … 597 597 PACKAGE_NAME='onioncat' 598 598 PACKAGE_TARNAME='onioncat' 599 PACKAGE_VERSION='0.2.2.r54 4'600 PACKAGE_STRING='onioncat 0.2.2.r54 4'599 PACKAGE_VERSION='0.2.2.r545' 600 PACKAGE_STRING='onioncat 0.2.2.r545' 601 601 PACKAGE_BUGREPORT='rahra@cypherpunk.at' 602 602 … … 1261 1261 # This message is too long to be a string in the A/UX 3.1 sh. 1262 1262 cat <<_ACEOF 1263 \`configure' configures onioncat 0.2.2.r54 4to adapt to many kinds of systems.1263 \`configure' configures onioncat 0.2.2.r545 to adapt to many kinds of systems. 1264 1264 1265 1265 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1331 1331 if test -n "$ac_init_help"; then 1332 1332 case $ac_init_help in 1333 short | recursive ) echo "Configuration of onioncat 0.2.2.r54 4:";;1333 short | recursive ) echo "Configuration of onioncat 0.2.2.r545:";; 1334 1334 esac 1335 1335 cat <<\_ACEOF … … 1423 1423 if $ac_init_version; then 1424 1424 cat <<\_ACEOF 1425 onioncat configure 0.2.2.r54 41425 onioncat configure 0.2.2.r545 1426 1426 generated by GNU Autoconf 2.62 1427 1427 … … 1437 1437 running configure, to aid debugging if configure makes a mistake. 1438 1438 1439 It was created by onioncat $as_me 0.2.2.r54 4, which was1439 It was created by onioncat $as_me 0.2.2.r545, which was 1440 1440 generated by GNU Autoconf 2.62. Invocation command line was 1441 1441 … … 2086 2086 # Define the identity of the package. 2087 2087 PACKAGE='onioncat' 2088 VERSION='0.2.2.r54 4'2088 VERSION='0.2.2.r545' 2089 2089 2090 2090 … … 2237 2237 2238 2238 cat >>confdefs.h <<\_ACEOF 2239 #define SVN_REVISION "54 4"2239 #define SVN_REVISION "545" 2240 2240 _ACEOF 2241 2241 … … 5326 5326 # values after options handling. 5327 5327 ac_log=" 5328 This file was extended by onioncat $as_me 0.2.2.r54 4, which was5328 This file was extended by onioncat $as_me 0.2.2.r545, which was 5329 5329 generated by GNU Autoconf 2.62. Invocation command line was 5330 5330 … … 5379 5379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5380 5380 ac_cs_version="\\ 5381 onioncat config.status 0.2.2.r54 45381 onioncat config.status 0.2.2.r545 5382 5382 configured by $0, generated by GNU Autoconf 2.62, 5383 5383 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" -
trunk/src/ocat.c
r543 r545 271 271 272 272 273 void parse_opt_early(int argc, char *argv [])273 void parse_opt_early(int argc, char *argv_orig[]) 274 274 { 275 275 int c; 276 276 char *argv[argc + 1]; 277 278 log_debug("parse_opt_early()"); 279 // argv array is copied to prevent the original one from being modified by 280 // getopt(). This behavior is at least true for Linux. 281 memcpy(&argv, argv_orig, sizeof(char*) * (argc + 1)); 277 282 opterr = 0; 278 283 while ((c = getopt(argc, argv, "f:I")) != -1) 284 { 285 log_debug("getopt(): c = %c, optind = %d, opterr = %d, optarg = \"%s\"", c, optind, opterr, optarg); 279 286 switch (c) 280 287 { … … 291 298 break; 292 299 } 300 } 293 301 } 294 302 … … 298 306 int c, urlconv = 0; 299 307 308 log_debug("parse_opt_early()"); 300 309 opterr = 1; 301 310 optind = 1; 302 311 while ((c = getopt(argc, argv, "f:IabBCd:hrRiopl:t:T:s:u:4L:P:")) != -1) 312 { 313 log_debug("getopt(): c = %c, optind = %d, opterr = %d, optarg = \"%s\"", c, optind, opterr, optarg); 303 314 switch (c) 304 315 { … … 399 410 exit(1); 400 411 } 412 } 401 413 402 414 return urlconv; … … 423 435 } 424 436 437 #ifdef DEBUG 438 for (c = 0; c < argc; c++) log_debug("argv[%d] = \"%s\"", c, argv[c]); 439 #endif 425 440 parse_opt_early(argc, argv); 426 441 … … 439 454 ctrl_handler((void*) (long) c); 440 455 441 456 #ifdef DEBUG 457 for (c = 0; c < argc; c++) log_debug("argv[%d] = \"%s\"", c, argv[c]); 458 #endif 442 459 urlconv = parse_opt(argc, argv); 443 460 … … 480 497 481 498 // copy onion-URL from command line 499 log_debug("argv[%d] = \"%s\"", optind, argv[optind]); 482 500 if (!CNF(rand_addr)) 483 501 strncpy(CNF(onion_url), argv[optind], NDESC(name_size));
Note: See TracChangeset
for help on using the changeset viewer.
