clean: use f(void) instead of f() to declare a pointer to a function without arguments

Explicitly state that menu_item functions like clean_cmd don't take any arguments by using void instead of an empty parameter list. Found using gcc -Wstrict-prototypes. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

René Scharfe committed Aug 16, 2014 at 13:16 UTC 8687f7776de7b7a266690af070f1674aecdbfb78
1 file changed +1 -1
builtin/clean.c
+1 -1
@@ -66,7 +66,7 @@ struct menu_item {
66 char hotkey;
67 const char *title;
68 int selected;
69 - int (*fn)();
69 + int (*fn)(void);
70 };
71
72 enum menu_stuff_type {