X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.c;h=66c658acb3f5c33a98eb2cf4bdf0249f26d9d1bc;hp=321883ca58ad2e339c5a0a981c42c70e4de3ea2f;hb=883af7d8af543616fe4ca09b0273dd4f59848779;hpb=50b3c6723e256f77159b77deae77378d8d65d71e diff --git a/command.c b/command.c index 321883ca..66c658ac 100644 --- a/command.c +++ b/command.c @@ -699,7 +699,8 @@ out: return ret; } -static int send_description(int fd, struct server_command *cmd, const char *handler) +static int send_list_of_commands(int fd, struct server_command *cmd, + const char *handler) { int ret, i; @@ -749,13 +750,13 @@ static int com_help(int fd, int argc, char **argv) if (argc < 2) { /* no argument given, print list of commands */ - if ((ret = send_description(fd, cmd_struct, "server")) < 0) + if ((ret = send_list_of_commands(fd, cmd_struct, "server")) < 0) return ret; mmd_lock(); handler = para_strdup(selectors[mmd->selector_num].name); cmd = selectors[mmd->selector_num].cmd_list; mmd_unlock(); - ret = send_description(fd, cmd, handler); + ret = send_list_of_commands(fd, cmd, handler); free(handler); return ret; }