aboutsummaryrefslogtreecommitdiff
path: root/src/exit
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-25 21:42:11 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-25 21:42:11 +0000
commit78ad97319349e9881653684f276dd620a0a423e9 (patch)
treecded8f0063f6848429706a36bd51174e62417b7e /src/exit
parentb968c5926b205c3cdd467474753746ef21522b32 (diff)
downloadgnunet-78ad97319349e9881653684f276dd620a0a423e9.tar.gz
gnunet-78ad97319349e9881653684f276dd620a0a423e9.zip
-misc fixes based on cppcheck
Diffstat (limited to 'src/exit')
-rw-r--r--src/exit/gnunet-helper-exit-windows.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/exit/gnunet-helper-exit-windows.c b/src/exit/gnunet-helper-exit-windows.c
index eb7c4f435..461494480 100644
--- a/src/exit/gnunet-helper-exit-windows.c
+++ b/src/exit/gnunet-helper-exit-windows.c
@@ -357,7 +357,7 @@ remove_address6 (const char *address)
357 */ 357 */
358 snprintf (command, LINE_LEN, 358 snprintf (command, LINE_LEN,
359 "netsh interface ipv6 delete address \"%s\" store=persistent", 359 "netsh interface ipv6 delete address \"%s\" store=persistent",
360 device_visible_name, address); 360 device_visible_name);
361 /* 361 /*
362 * Set the address 362 * Set the address
363 */ 363 */
@@ -432,7 +432,7 @@ remove_address4 (const char *address)
432 */ 432 */
433 snprintf (command, LINE_LEN, 433 snprintf (command, LINE_LEN,
434 "netsh interface ipv4 delete address \"%s\" gateway=all store=persistent", 434 "netsh interface ipv4 delete address \"%s\" gateway=all store=persistent",
435 device_visible_name, address); 435 device_visible_name);
436 /* 436 /*
437 * Set the address 437 * Set the address
438 */ 438 */
@@ -1450,6 +1450,8 @@ teardown_final:
1450 1450
1451 CloseHandle (tap_handle); 1451 CloseHandle (tap_handle);
1452} 1452}
1453
1454
1453/** 1455/**
1454 * Open VPN tunnel interface. 1456 * Open VPN tunnel interface.
1455 * 1457 *
@@ -1475,14 +1477,18 @@ main (int argc, char **argv)
1475 1477
1476 if ( (1 < argc) && (0 != strcmp (argv[1], "-d"))){ 1478 if ( (1 < argc) && (0 != strcmp (argv[1], "-d"))){
1477 privilege_testing = TRUE; 1479 privilege_testing = TRUE;
1478 fprintf (stderr, "DEBUG: Running binary in privilege testing mode.", argv[0]); 1480 fprintf (stderr,
1481 "%s",
1482 "DEBUG: Running binary in privilege testing mode.");
1479 argv++; 1483 argv++;
1480 argc--; 1484 argc--;
1481 } 1485 }
1482 1486
1483 if (6 != argc) 1487 if (6 != argc)
1484 { 1488 {
1485 fprintf (stderr, "FATAL: must supply 6 arguments\nUsage:\ngnunet-helper-exit [-d] <if name prefix> <uplink-interface name> <address6 or \"-\"> <netbits6> <address4 or \"-\"> <netmask4>\n", argv[0]); 1489 fprintf (stderr,
1490 "%s",
1491 "FATAL: must supply 6 arguments\nUsage:\ngnunet-helper-exit [-d] <if name prefix> <uplink-interface name> <address6 or \"-\"> <netbits6> <address4 or \"-\"> <netmask4>\n");
1486 return 1; 1492 return 1;
1487 } 1493 }
1488 1494