Merge branch 'rs/clean-menu-item-defn' into maint
authorJunio C Hamano <gitster@pobox.com>
Tue, 11 Nov 2014 18:20:13 +0000 (10:20 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Nov 2014 18:20:13 +0000 (10:20 -0800)
* rs/clean-menu-item-defn:
clean: use f(void) instead of f() to declare a pointer to a function without arguments

builtin/clean.c
index 1032563e5fae880df9256c9eafaa96d60462ecd2..3beeea6ec0fdc3883f2456caf46f3e1c4dadc682 100644 (file)
@@ -67,7 +67,7 @@ struct menu_item {
        char hotkey;
        const char *title;
        int selected;
-       int (*fn)();
+       int (*fn)(void);
 };
 
 enum menu_stuff_type {