]> git.tue.mpg.de Git - paraslash.git/commitdiff
command.c: rename send_description() to send_list_of_commands()
authorAndre <maan@p133.(none)>
Thu, 4 Jan 2007 15:51:59 +0000 (16:51 +0100)
committerAndre <maan@p133.(none)>
Thu, 4 Jan 2007 15:51:59 +0000 (16:51 +0100)
command.c

index 321883ca58ad2e339c5a0a981c42c70e4de3ea2f..66c658acb3f5c33a98eb2cf4bdf0249f26d9d1bc 100644 (file)
--- 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;
        }