From 377ed2489fccb7f923540d57f6cb83e292c2a817 Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 4 Jan 2007 16:51:59 +0100 Subject: [PATCH] command.c: rename send_description() to send_list_of_commands() --- command.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; } -- 2.39.5