/*
- * 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;
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();