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>
This commit is contained in:
René Scharfe 2014-08-16 13:16:56 +02:00 committed by Junio C Hamano
parent 9f93e4611f
commit 8687f7776d

View File

@ -66,7 +66,7 @@ struct menu_item {
char hotkey;
const char *title;
int selected;
int (*fn)();
int (*fn)(void);
};
enum menu_stuff_type {