]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - recv.c
Don't check return value of command line parsers unnecessarily.
[paraslash.git] / recv.c
diff --git a/recv.c b/recv.c
index 3d5049ba36aabb42720d6b4bb2d1d3f57b0acd7f..b03c5714b23b23c305b5b0e1114ea5326cd1f841 100644 (file)
--- a/recv.c
+++ b/recv.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005-2012 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2013 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
 #include "stdout.h"
 #include "version.h"
 
+extern void afh_recv_init(struct receiver *r);
+#undef AFH_RECEIVER
+#define AFH_RECEIVER {.name = "afh", .init = afh_recv_init},
+DEFINE_RECEIVER_ARRAY;
+
 /** The gengetopt args info struct. */
 static struct recv_args_info conf;
 
@@ -49,8 +54,7 @@ __noreturn static void print_help_and_die(void)
 
 static void *parse_config(int argc, char *argv[], int *receiver_num)
 {
-       if (recv_cmdline_parser(argc, argv, &conf))
-               return NULL;
+       recv_cmdline_parser(argc, argv, &conf);
        HANDLE_VERSION_FLAG("recv", conf);
        if (conf.help_given || conf.detailed_help_given)
                print_help_and_die();