From: Andre Date: Thu, 4 Jan 2007 15:51:59 +0000 (+0100) Subject: command.c: rename send_description() to send_list_of_commands() X-Git-Tag: v0.2.15~116 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=377ed2489fccb7f923540d57f6cb83e292c2a817;hp=50b3c6723e256f77159b77deae77378d8d65d71e command.c: rename send_description() to send_list_of_commands() --- 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; }