]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - afh_recv.c
afh_recv: Don't set t->error unnecessarily.
[paraslash.git] / afh_recv.c
index 96f0d7ec7cfe3e0b2a757de4f66472ec2d576267..941ec4e94416e1e130555de9c7956567044ae1f0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011-2013 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2011-2014 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -60,7 +60,6 @@ static int afh_execute(struct btr_node *btrn, const char *cmd, char **result)
                if (x >= pard->afhi.chunks_total)
                        return -ERRNO_TO_PARA_ERROR(EINVAL);
                pard->first_chunk = pard->current_chunk = x;
-               rn->task.error = 0;
                return 1;
        }
        return -E_BTR_NAVAIL;
@@ -254,9 +253,6 @@ void afh_recv_init(struct receiver *r)
        r->parse_config = afh_recv_parse_config;
        r->free_config = afh_recv_free_config;
        r->execute = afh_execute;
-       r->help = (struct ggo_help) {
-               .short_help = afh_recv_args_info_help,
-               .detailed_help = afh_recv_args_info_detailed_help
-       };
+       r->help = (struct ggo_help)DEFINE_GGO_HELP(afh_recv);
        afh_recv_cmdline_parser_free(&dummy);
 }