]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
rename server command array from cmd_struct to server_cmds
authorAndre <maan@meins.(none)>
Sun, 21 Jan 2007 20:48:19 +0000 (21:48 +0100)
committerAndre <maan@meins.(none)>
Sun, 21 Jan 2007 20:48:19 +0000 (21:48 +0100)
command.c
server.cmd

index acd539693748deebb035ba08e07b9bb49394bd1f..77908bf09e8fc09b073e48372ff6749a764de118 100644 (file)
--- a/command.c
+++ b/command.c
@@ -462,9 +462,9 @@ static int send_list_of_commands(int fd, struct server_command *cmd,
 /* always returns string that must be freed by the caller in handler */
 static struct server_command *get_cmd_ptr(char *name, char **handler)
 {
-       struct server_command *cmd = cmd_struct;
+       struct server_command *cmd;
 
-       for (cmd = cmd_struct; cmd->name; cmd++)
+       for (cmd = server_cmds; cmd->name; cmd++)
                if (!strcmp(cmd->name, name)) {
                        if (handler)
                                *handler = para_strdup("para_server"); /* server commands */
@@ -492,7 +492,7 @@ int com_help(int fd, int argc, char **argv)
 
        if (argc < 2) {
                /* no argument given, print list of commands */
-               if ((ret = send_list_of_commands(fd, cmd_struct, "server")) < 0)
+               if ((ret = send_list_of_commands(fd, server_cmds, "server")) < 0)
                        return ret;
                mmd_lock();
                handler = para_strdup(selectors[mmd->selector_num].name);
index 3812088e5923d275d4b08b3d5522954d87e7f14c..9d7c4b08875a4f07333e78fce92701fc307d0db6 100644 (file)
@@ -2,7 +2,7 @@ FN: server_command_list
 HC: prototypes for the server command handlers
 CC: array of server commands
 AT: server_command
-AN: cmd_struct
+AN: server_cmds
 IN: server user_list
 ---
 N: chs