X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.c;h=77908bf09e8fc09b073e48372ff6749a764de118;hp=acd539693748deebb035ba08e07b9bb49394bd1f;hb=93232d81798a269d4e4b6ec73588be5caa3c1e25;hpb=705cad2ebbb5a37a43acc43676570b093b5c3b6a diff --git a/command.c b/command.c index acd53969..77908bf0 100644 --- 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);