X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=client_common.c;h=754b5bf235d6817714cb28e922ff60fbed2e0649;hb=06b3e7bc1b04def7488a5c5cd65de00aca655612;hp=3e20eafd74338a4196ef994753ee97eef95979bc;hpb=4dc05b2d870c81077263920fcb51548839664a0d;p=paraslash.git diff --git a/client_common.c b/client_common.c index 3e20eafd..754b5bf2 100644 --- a/client_common.c +++ b/client_common.c @@ -13,7 +13,6 @@ #include "error.h" #include "list.h" #include "sched.h" -#include "client.cmdline.h" #include "crypt.h" #include "net.h" #include "fd.h" @@ -28,11 +27,11 @@ #define CLIENT_BUFSIZE 4000 /** - * Close the connection to para_server and deallocate per-command ressources. + * Close the connection to para_server and deallocate per-command resources. * * \param ct The client task. * - * This frees all ressources of the current command but keeps the configuration + * This frees all resources of the current command but keeps the configuration * in \p ct->conf. * * \sa \ref client_close(). @@ -601,8 +600,7 @@ int client_connect(struct client_task *ct, struct sched *s, ct->btrn = btr_new_node(&(struct btr_node_description) EMBRACE(.name = "client", .parent = parent, .child = child)); ct->task.pre_select = client_pre_select; - ct->task.new_post_select = client_post_select; - ct->task.post_select = NULL; + ct->task.post_select = client_post_select; ct->task.error = 0; sprintf(ct->task.status, "client"); register_task(s, &ct->task); @@ -643,7 +641,7 @@ int client_parse_config(int argc, char *argv[], struct client_task **ct_ptr, ret = -E_CLIENT_SYNTAX; if (client_cmdline_parser(argc, argv, &ct->conf)) goto out; - HANDLE_VERSION_FLAG("client", ct->conf); + version_handle_flag("client", ct->conf.version_given); ct->config_file = ct->conf.config_file_given? para_strdup(ct->conf.config_file_arg) :