X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.c;h=072b972cb5754122aa539178edbf6cf43a19d3e3;hp=516a62fe520887e1b015ff8e159b8027dd86b232;hb=28c8e051a5e94db5105787e8450bab35931f78b8;hpb=5f956b99f8f30642227686dd9341950f011512ae diff --git a/command.c b/command.c index 516a62fe..072b972c 100644 --- a/command.c +++ b/command.c @@ -6,9 +6,12 @@ /** \file command.c does client authentication and executes server commands */ -#include /* gettimeofday */ -#include "para.h" /* gettimeofday */ +#include +#include +#include +#include +#include "para.h" #include "server.cmdline.h" #include "afs_common.h" #include "afh.h" @@ -16,7 +19,6 @@ #include "vss.h" #include "send.h" #include "rc4.h" -#include #include "error.h" #include "net.h" #include "daemon.h" @@ -473,7 +475,7 @@ static struct server_command *get_cmd_ptr(const char *name, char **handler) if (!strcmp(cmd->name, name)) return cmd; /* not found, look for commands supported by afs */ - for (cmd = afs_cmds; cmd; cmd++) + for (cmd = afs_cmds; cmd->name; cmd++) if (!strcmp(cmd->name, name)) return cmd; return NULL;