gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r3281 - GNUnet/src/util/getopt


From: grothoff
Subject: [GNUnet-SVN] r3281 - GNUnet/src/util/getopt
Date: Sun, 20 Aug 2006 18:33:39 -0700 (PDT)

Author: grothoff
Date: 2006-08-20 18:33:37 -0700 (Sun, 20 Aug 2006)
New Revision: 3281

Modified:
   GNUnet/src/util/getopt/getopt.c
   GNUnet/src/util/getopt/printhelp.c
Log:
syn

Modified: GNUnet/src/util/getopt/getopt.c
===================================================================
--- GNUnet/src/util/getopt/getopt.c     2006-08-21 01:30:40 UTC (rev 3280)
+++ GNUnet/src/util/getopt/getopt.c     2006-08-21 01:33:37 UTC (rev 3281)
@@ -1037,7 +1037,6 @@
   long_options[count].flag = NULL;
   long_options[count].val = '\0';
   shorts[spos++] = '\0';
-  printf("shorts: %s %d\n", shorts, count);
   cont = OK;
   /* main getopt loop */
   while (cont == OK) {
@@ -1071,6 +1070,8 @@
 
   FREE(shorts);
   FREE(long_options);
+  if (cont == SYSERR)
+    return SYSERR;
   return GNoptind;
 }
 

Modified: GNUnet/src/util/getopt/printhelp.c
===================================================================
--- GNUnet/src/util/getopt/printhelp.c  2006-08-21 01:30:40 UTC (rev 3280)
+++ GNUnet/src/util/getopt/printhelp.c  2006-08-21 01:33:37 UTC (rev 3281)
@@ -44,7 +44,7 @@
   const char * trans;
   const struct CommandLineOption * opt;
        
-  printf("%s",
+  printf("%s\n",
         gettext(about));
   printf(_("Arguments mandatory for long options are also mandatory for short 
options.\n"));
   slen = 0;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]