]> git.cameronkatri.com Git - cgit.git/commitdiff
cmd: fix command definition
authorJohn Keeping <john@keeping.me.uk>
Fri, 14 Aug 2015 14:20:23 +0000 (15:20 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 14 Aug 2015 14:41:22 +0000 (16:41 +0200)
The previous commit removed the "pre" field from "struct cgit_cmd" but
forgot to update this macro.

Signed-off-by: John Keeping <john@keeping.me.uk>
Reviewed-by: Christian Hesse <mail@eworm.de>
cmd.c

diff --git a/cmd.c b/cmd.c
index 20c80b0d6d5f2b3b531f8b70353f0293fa16006d..c9910928a6878daef6165e258ae4ec2c6b50c20f 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -142,7 +142,7 @@ static void tree_fn(void)
 }
 
 #define def_cmd(name, want_repo, want_vpath, is_clone) \
-       {#name, name##_fn, NULL, want_repo, want_vpath, is_clone}
+       {#name, name##_fn, want_repo, want_vpath, is_clone}
 
 struct cgit_cmd *cgit_get_cmd(void)
 {