X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/f03c5a86c8c9b1f03d8ced522597c9a9844002b4..1b8ed51f2f2612517414801a52362c6480eeda91:/clients/disorder.c diff --git a/clients/disorder.c b/clients/disorder.c index 0dd71c7..be075f1 100644 --- a/clients/disorder.c +++ b/clients/disorder.c @@ -18,22 +18,17 @@ * USA */ -#include -#include "types.h" +#include "common.h" #include #include #include #include -#include #include -#include -#include #include #include #include #include -#include #include #include @@ -48,7 +43,6 @@ #include "kvp.h" #include "split.h" #include "sink.h" -#include "plugin.h" #include "mem.h" #include "defs.h" #include "authorize.h" @@ -755,7 +749,7 @@ int main(int argc, char **argv) { optind = 1; /* for subsequent getopt calls */ /* accumulate command args */ while(n < argc) { - if((i = TABLE_FIND(commands, struct command, name, argv[n])) < 0) + if((i = TABLE_FIND(commands, name, argv[n])) < 0) fatal(0, "unknown command '%s'", argv[n]); if(n + commands[i].min >= argc) fatal(0, "missing arguments to '%s'", argv[n]);