aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-11-13 13:09:47 +0000
committerChristian Grothoff <christian@grothoff.org>2012-11-13 13:09:47 +0000
commitd977cfbf63528690a773d1fe0bf6dbfd1d41170f (patch)
tree201f9c3eaa553ec0ea7ae699b32573bedd478a4c
parent7919161117c5c4d952e664a46b7cf5c1e4c9c5b2 (diff)
downloadgnunet-d977cfbf63528690a773d1fe0bf6dbfd1d41170f.tar.gz
gnunet-d977cfbf63528690a773d1fe0bf6dbfd1d41170f.zip
-helper is not called from cmd-line, so no utf8 conversion required
-rw-r--r--src/fs/gnunet-helper-fs-publish.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/fs/gnunet-helper-fs-publish.c b/src/fs/gnunet-helper-fs-publish.c
index d429f603d..9291bd456 100644
--- a/src/fs/gnunet-helper-fs-publish.c
+++ b/src/fs/gnunet-helper-fs-publish.c
@@ -448,9 +448,6 @@ int main(int argc,
448 * binary mode. 448 * binary mode.
449 */ 449 */
450 _setmode (1, _O_BINARY); 450 _setmode (1, _O_BINARY);
451 /* Get utf-8-encoded arguments */
452 if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv))
453 return 5;
454#else 451#else
455 ignore_sigpipe (); 452 ignore_sigpipe ();
456#endif 453#endif
@@ -461,7 +458,6 @@ int main(int argc,
461 FPRINTF (stderr, 458 FPRINTF (stderr,
462 "%s", 459 "%s",
463 "gnunet-helper-fs-publish needs exactly one or two arguments\n"); 460 "gnunet-helper-fs-publish needs exactly one or two arguments\n");
464 GNUNET_free ((void*) argv);
465 return 1; 461 return 1;
466 } 462 }
467 filename_expanded = argv[1]; 463 filename_expanded = argv[1];
@@ -481,7 +477,6 @@ int main(int argc,
481 { 477 {
482 (void) write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_ERROR, NULL, 0); 478 (void) write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_ERROR, NULL, 0);
483 EXTRACTOR_plugin_remove_all (plugins); 479 EXTRACTOR_plugin_remove_all (plugins);
484 GNUNET_free ((void*) argv);
485 return 2; 480 return 2;
486 } 481 }
487 /* signal that we're done counting files, so that a percentage of 482 /* signal that we're done counting files, so that a percentage of
@@ -490,7 +485,6 @@ int main(int argc,
490 write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_COUNTING_DONE, NULL, 0)) 485 write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_COUNTING_DONE, NULL, 0))
491 { 486 {
492 EXTRACTOR_plugin_remove_all (plugins); 487 EXTRACTOR_plugin_remove_all (plugins);
493 GNUNET_free ((void*) argv);
494 return 3; 488 return 3;
495 } 489 }
496 if (NULL != root) 490 if (NULL != root)
@@ -501,7 +495,6 @@ int main(int argc,
501 (void) write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_ERROR, NULL, 0); 495 (void) write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_ERROR, NULL, 0);
502 free_tree (root); 496 free_tree (root);
503 EXTRACTOR_plugin_remove_all (plugins); 497 EXTRACTOR_plugin_remove_all (plugins);
504 GNUNET_free ((void*) argv);
505 return 4; 498 return 4;
506 } 499 }
507 free_tree (root); 500 free_tree (root);
@@ -509,7 +502,6 @@ int main(int argc,
509 /* enable "clean" shutdown by telling parent that we are done */ 502 /* enable "clean" shutdown by telling parent that we are done */
510 (void) write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_FINISHED, NULL, 0); 503 (void) write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_FINISHED, NULL, 0);
511 EXTRACTOR_plugin_remove_all (plugins); 504 EXTRACTOR_plugin_remove_all (plugins);
512 GNUNET_free ((void*) argv);
513 return 0; 505 return 0;
514} 506}
515 507