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;
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;
}