gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r24927 - gnunet/src/fs


From: gnunet
Subject: [GNUnet-SVN] r24927 - gnunet/src/fs
Date: Tue, 13 Nov 2012 14:09:47 +0100

Author: grothoff
Date: 2012-11-13 14:09:47 +0100 (Tue, 13 Nov 2012)
New Revision: 24927

Modified:
   gnunet/src/fs/gnunet-helper-fs-publish.c
Log:
-helper is not called from cmd-line, so no utf8 conversion required

Modified: gnunet/src/fs/gnunet-helper-fs-publish.c
===================================================================
--- gnunet/src/fs/gnunet-helper-fs-publish.c    2012-11-13 08:43:19 UTC (rev 
24926)
+++ gnunet/src/fs/gnunet-helper-fs-publish.c    2012-11-13 13:09:47 UTC (rev 
24927)
@@ -448,9 +448,6 @@
    * binary mode.
    */
   _setmode (1, _O_BINARY);
-  /* Get utf-8-encoded arguments */
-  if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv))
-    return 5;
 #else
   ignore_sigpipe ();
 #endif
@@ -461,7 +458,6 @@
     FPRINTF (stderr, 
             "%s",
             "gnunet-helper-fs-publish needs exactly one or two arguments\n");
-    GNUNET_free ((void*) argv);
     return 1;
   }
   filename_expanded = argv[1];
@@ -481,7 +477,6 @@
   {
     (void) write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_ERROR, NULL, 
0);
     EXTRACTOR_plugin_remove_all (plugins);
-    GNUNET_free ((void*) argv);
     return 2;
   }
   /* signal that we're done counting files, so that a percentage of 
@@ -490,7 +485,6 @@
       write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_COUNTING_DONE, 
NULL, 0))
   {
     EXTRACTOR_plugin_remove_all (plugins);
-    GNUNET_free ((void*) argv);
     return 3;  
   }
   if (NULL != root)
@@ -501,7 +495,6 @@
       (void) write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_ERROR, NULL, 
0);
       free_tree (root);
       EXTRACTOR_plugin_remove_all (plugins);
-      GNUNET_free ((void*) argv);
       return 4;
     }
     free_tree (root);
@@ -509,7 +502,6 @@
   /* enable "clean" shutdown by telling parent that we are done */
   (void) write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_FINISHED, NULL, 
0);
   EXTRACTOR_plugin_remove_all (plugins);
-  GNUNET_free ((void*) argv);  
   return 0;
 }
 




reply via email to

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