summaryrefslogtreecommitdiff
path: root/src/nat/gnunet-helper-nat-server-windows.c
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/nat/gnunet-helper-nat-server-windows.c
parentb968c5926b205c3cdd467474753746ef21522b32 (diff)
downloadgnunet-78ad97319349e9881653684f276dd620a0a423e9.tar.gz
gnunet-78ad97319349e9881653684f276dd620a0a423e9.zip
-misc fixes based on cppcheck
Diffstat (limited to 'src/nat/gnunet-helper-nat-server-windows.c')
-rw-r--r--src/nat/gnunet-helper-nat-server-windows.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/nat/gnunet-helper-nat-server-windows.c b/src/nat/gnunet-helper-nat-server-windows.c
index fb564a188..7962e3071 100644
--- a/src/nat/gnunet-helper-nat-server-windows.c
+++ b/src/nat/gnunet-helper-nat-server-windows.c
@@ -533,12 +533,15 @@ main (int argc, char *const *argv)
533 WSADATA wsaData; 533 WSADATA wsaData;
534 unsigned int alt = 0; 534 unsigned int alt = 0;
535 535
536 if (argc > 1 && 0 != strcmp (argv[1], "-d")){ 536 if ( (argc > 1) && (0 != strcmp (argv[1], "-d")))
537 privilege_testing = TRUE; 537 {
538 fprintf (stderr, "DEBUG: Running binary in privilege testing mode.", argv[0]); 538 privilege_testing = TRUE;
539 argv++; 539 fprintf (stderr,
540 argc--; 540 "%s",
541 } 541 "DEBUG: Running binary in privilege testing mode.");
542 argv++;
543 argc--;
544 }
542 545
543 if (2 != argc) 546 if (2 != argc)
544 { 547 {