gengetopt improvements
[paraslash.git] / command.c
index e94fb8e..030289a 100644 (file)
--- a/command.c
+++ b/command.c
@@ -865,7 +865,7 @@ static int com_chs(int fd, int argc, char **argv)
                if (strcmp(dblist[i].name, argv[1]))
                        continue;
                mmd_lock();
-               mmd->dbt_change = i;
+               mmd->selector_change = i;
                mmd->events++;
                mmd_unlock();
                return 1;
@@ -879,6 +879,7 @@ static int com_next(__unused int socket_fd, int argc, __unused char **argv)
        if (argc)
                return -E_COMMAND_SYNTAX;
        mmd_lock();
+       mmd->events++;
        mmd->new_afs_status_flags |= AFS_NEXT;
        mmd_unlock();
        return 1;
@@ -1204,7 +1205,6 @@ int handle_connect(int fd, struct sockaddr_in *addr)
        /* valid command and sufficient perms */
        alarm(0);
        argc = split_args(command, &argv, '\n');
-       argv[0] = cmd->name;
        mmd_lock();
        mmd->num_commands++;
        mmd_unlock();