]> Dogcows Code - chaz/openbox/commitdiff
ANSI function declarations, ie () -> (void)
authorMikael Magnusson <mikachu@comhem.se>
Tue, 4 Sep 2007 04:21:22 +0000 (06:21 +0200)
committerMikael Magnusson <mikachu@comhem.se>
Tue, 4 Sep 2007 04:27:10 +0000 (06:27 +0200)
58 files changed:
openbox/actions.c
openbox/actions/addremovedesktop.c
openbox/actions/all.c
openbox/actions/breakchroot.c
openbox/actions/close.c
openbox/actions/cyclewindows.c
openbox/actions/debug.c
openbox/actions/decorations.c
openbox/actions/desktop.c
openbox/actions/directionalwindows.c
openbox/actions/dockautohide.c
openbox/actions/execute.c
openbox/actions/exit.c
openbox/actions/focus.c
openbox/actions/focustobottom.c
openbox/actions/fullscreen.c
openbox/actions/growtoedge.c
openbox/actions/iconify.c
openbox/actions/if.c
openbox/actions/kill.c
openbox/actions/layer.c
openbox/actions/lower.c
openbox/actions/maximize.c
openbox/actions/move.c
openbox/actions/moverelative.c
openbox/actions/moveresizeto.c
openbox/actions/movetoedge.c
openbox/actions/omnipresent.c
openbox/actions/raise.c
openbox/actions/raiselower.c
openbox/actions/reconfigure.c
openbox/actions/resize.c
openbox/actions/resizerelative.c
openbox/actions/restart.c
openbox/actions/shade.c
openbox/actions/showdesktop.c
openbox/actions/showmenu.c
openbox/actions/unfocus.c
openbox/client.c
openbox/client_menu.c
openbox/config.c
openbox/dock.c
openbox/event.c
openbox/extensions.c
openbox/focus.c
openbox/focus_cycle_popup.c
openbox/grab.c
openbox/keyboard.c
openbox/menu.c
openbox/menuframe.c
openbox/mouse.c
openbox/moveresize.c
openbox/popup.c
openbox/prop.c
openbox/screen.c
openbox/stacking.c
openbox/startupnotify.c
parser/parse.c

index cfe0bddededc336fc0f7b4f6065a59e14de3e894..75d4af059174a3a19d49f799be32384a5f308681 100644 (file)
@@ -275,12 +275,12 @@ void actions_run_acts(GSList *acts,
     }
 }
 
-gboolean actions_interactive_act_running()
+gboolean actions_interactive_act_running(void)
 {
     return interactive_act != NULL;
 }
 
-void actions_interactive_cancel_act()
+void actions_interactive_cancel_act(void)
 {
     if (interactive_act) {
         interactive_act->def->i_cancel(interactive_act->options);
@@ -306,7 +306,7 @@ static gboolean actions_interactive_begin_act(ObActionsAct *act, guint state)
         return FALSE;
 }
 
-static void actions_interactive_end_act()
+static void actions_interactive_end_act(void)
 {
     if (interactive_act) {
         ungrab_keyboard();
index c8904d3c18a61a33986a62083560424ae632de2c..8125b9bb8a205892d68bcc9830a19e24453c3277 100644 (file)
@@ -14,7 +14,7 @@ static gpointer setup_remove_func(ObParseInst *i,
 static void     free_func(gpointer options);
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_addremovedesktop_startup()
+void action_addremovedesktop_startup(void)
 {
     actions_register("AddDesktop",
                      setup_add_func,
index 06858c05e693c4602581f8f1a368b53fd21e2190..47141ac6a65df57d31b1665c04ff9389b0d9c9de 100644 (file)
@@ -1,6 +1,6 @@
 #include "all.h"
 
-void action_all_startup()
+void action_all_startup(void)
 {
     action_execute_startup();
     action_debug_startup();
index bfdbf16ce7755e3d45909c60f3c6960cafb0ea14..9804091b43c3ea1ccc1e13891690a4cac4d50109 100644 (file)
@@ -3,7 +3,7 @@
 
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_breakchroot_startup()
+void action_breakchroot_startup(void)
 {
     actions_register("BreakChroot",
                      NULL, NULL,
index 37260e1315093d29073f979351c1f4e36554d0ad..ab75e05da4d1578ce5bf4c983c3467c66e0ac62f 100644 (file)
@@ -3,7 +3,7 @@
 
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_close_startup()
+void action_close_startup(void)
 {
     actions_register("Close",
                      NULL, NULL,
index 7b4bd11e29e58e3875206afcf2bde4ec2b323612..965ac99313a7633891fce631a966a42e740f5991 100644 (file)
@@ -31,7 +31,7 @@ static void     i_cancel_func(gpointer options);
 
 static void     end_cycle(gboolean cancel, guint state, Options *o);
 
-void action_cyclewindows_startup()
+void action_cyclewindows_startup(void)
 {
     actions_register("NextWindow", setup_forward_func, free_func,
                      run_func, i_input_func, i_cancel_func);
index bbc9cca2834b3eb16f2a39494b67542ccd7838ec..f71b685df8a81357a9806dedbbfc62dd3c12719b 100644 (file)
@@ -9,7 +9,7 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node);
 static void     free_func(gpointer options);
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_debug_startup()
+void action_debug_startup(void)
 {
     actions_register("Debug",
                      setup_func,
index bee25f3e25ce0da34a01b530c12c74dcf53ecaeb..e85fb8ef1c9dbb3b22ebb4a74fedebc77ad5c6ff 100644 (file)
@@ -5,7 +5,7 @@ static gboolean run_func_on(ObActionsData *data, gpointer options);
 static gboolean run_func_off(ObActionsData *data, gpointer options);
 static gboolean run_func_toggle(ObActionsData *data, gpointer options);
 
-void action_decorations_startup()
+void action_decorations_startup(void)
 {
     actions_register("Decorate", NULL, NULL, run_func_on, NULL, NULL);
     actions_register("Undecorate", NULL, NULL, run_func_off, NULL, NULL);
index 75949be2e5fc2d1c40622f07e87a75b676a2a461..69275252e1c7770db17cc6f38c9b31af9b92d2aa 100644 (file)
@@ -32,7 +32,7 @@ static gpointer setup_send_func(ObParseInst *i, xmlDocPtr doc,
                                 xmlNodePtr node);
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_desktop_startup()
+void action_desktop_startup(void)
 {
     actions_register("GoToDesktop", setup_go_func, g_free, run_func,
                      NULL, NULL);
index 884ebcb65274567308819cb7cbc0e59b8859fc26..707659ebac5af57ae47ab7155a387327ae89984d 100644 (file)
@@ -31,7 +31,7 @@ static void     i_cancel_func(gpointer options);
 
 static void     end_cycle(gboolean cancel, guint state, Options *o);
 
-void action_directionalwindows_startup()
+void action_directionalwindows_startup(void)
 {
     actions_register("DirectionalCycleWindows", setup_cycle_func, free_func,
                      run_func, i_input_func, i_cancel_func);
index 9e035b819a2c92625c538dba253e9dac74e6621a..5e5382d4475adb780df2f6d481183289602efbe2 100644 (file)
@@ -4,7 +4,7 @@
 
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_dockautohide_startup()
+void action_dockautohide_startup(void)
 {
     actions_register("ToggleDockAutoHide",
                      NULL, NULL,
index caf1347b379ab8fa4f263a5a47641de296357986..02de01549d9ccac0a88a91c58d4588c6ff78dc90 100644 (file)
@@ -23,7 +23,7 @@ static gboolean i_input_func(guint initial_state,
 static void     i_cancel_func(gpointer options);
 */
 
-void action_execute_startup()
+void action_execute_startup(void)
 {
     actions_register("Execute",
                      setup_func,
index 68b5cef4a5e94287c6af8e5f0fb1e6d579523c00..662c984a6a41abfe63002daf79483790777be0da 100644 (file)
@@ -3,7 +3,7 @@
 
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_exit_startup()
+void action_exit_startup(void)
 {
     actions_register("Exit",
                      NULL, NULL,
index ea7a6a2c83bf59efa8bc011ea43282e927601872..67c1479fa95e77171a0e3d7719bef8a481cb3b0f 100644 (file)
@@ -11,7 +11,7 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node);
 static void     free_func(gpointer options);
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_focus_startup()
+void action_focus_startup(void)
 {
     actions_register("Focus",
                      setup_func,
index 74d48e33ce4d0f74dd604da6e19873c70786c990..49c945b9362cbb91372c01b7b075e23b7b29e48f 100644 (file)
@@ -3,7 +3,7 @@
 
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_focustobottom_startup()
+void action_focustobottom_startup(void)
 {
     actions_register("FocusToBottom", NULL, NULL, run_func, NULL, NULL);
 }
index 647a78bcf2a79936b8a8ad14ab5e541e7448807a..7579b95d17005c8b354c7ba7d1b6b067ffecee8d 100644 (file)
@@ -3,7 +3,7 @@
 
 static gboolean run_func_toggle(ObActionsData *data, gpointer options);
 
-void action_fullscreen_startup()
+void action_fullscreen_startup(void)
 {
     actions_register("ToggleFullscreen", NULL, NULL, run_func_toggle,
                      NULL, NULL);
index 2e2b7011cf80a86d2d70d20313d94c1fbf0671a5..69b8ef77b33ce4db0621992c08ceafe9b26e7a15 100644 (file)
@@ -13,7 +13,7 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node);
 static void     free_func(gpointer options);
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_growtoedge_startup()
+void action_growtoedge_startup(void)
 {
     actions_register("GrowToEdge",
                      setup_func,
index b82684ea1babbd9e5f8e7654a45f74594c34008c..6f14a2e070760efad8f29e280909059e73a2829a 100644 (file)
@@ -3,7 +3,7 @@
 
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_iconify_startup()
+void action_iconify_startup(void)
 {
     actions_register("Iconify",
                      NULL, NULL,
index 25d899c1cf89958f2154bd6a141ac6fe3d5597e7..a35c61fce70a96c4df8944c4294957ea4e986409 100644 (file)
@@ -27,7 +27,7 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node);
 static void     free_func(gpointer options);
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_if_startup()
+void action_if_startup(void)
 {
     actions_register("If",
                      setup_func,
index 5e14cb7c91be3ee66ac996b04be7311615d95c5e..68244407bb0a344e623812dac18ad0a157e780c8 100644 (file)
@@ -3,7 +3,7 @@
 
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_kill_startup()
+void action_kill_startup(void)
 {
     actions_register("Kill",
                      NULL, NULL,
index 5f0d6ce63aec8c55702e3111b5d1ae79088114c0..92fa4806ebd36990d934117c7711d3beed2ab855 100644 (file)
@@ -13,7 +13,7 @@ static gpointer setup_func_send(ObParseInst *i, xmlDocPtr doc,
                                 xmlNodePtr node);
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_layer_startup()
+void action_layer_startup(void)
 {
     actions_register("ToggleAlwaysOnTop", setup_func_top, g_free,
                      run_func, NULL, NULL);
index 1abf5903b5c8ac2e2d44dc5ee1e2aa6b0f823b73..3a214ea7615fe10675a8996db43507abf3dbb14b 100644 (file)
@@ -3,7 +3,7 @@
 
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_lower_startup()
+void action_lower_startup(void)
 {
     actions_register("Lower",
                      NULL, NULL,
index 8bb0cc953e355b52a9595b659edd885b05cd04d9..bb6f470ac557ab54084e2d67f12a1fa7be2c6141 100644 (file)
@@ -17,7 +17,7 @@ static gboolean run_func_on(ObActionsData *data, gpointer options);
 static gboolean run_func_off(ObActionsData *data, gpointer options);
 static gboolean run_func_toggle(ObActionsData *data, gpointer options);
 
-void action_maximize_startup()
+void action_maximize_startup(void)
 {
     actions_register("Maximize", setup_func, g_free, run_func_on,
                      NULL, NULL);
index bf140c31dd8f8ca666902af0761b303b32167f61..1a8ea2047c0475a139222b2228e617c4e13b0b92 100644 (file)
@@ -4,7 +4,7 @@
 
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_move_startup()
+void action_move_startup(void)
 {
     actions_register("Move",
                      NULL, NULL,
index deb1eae7ded27a673519fe212b3c2c1d255e92da..1d1189cdb7c089d26ef74dd00e3052ef77cce863 100644 (file)
@@ -13,7 +13,7 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node);
 static void     free_func(gpointer options);
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_moverelative_startup()
+void action_moverelative_startup(void)
 {
     actions_register("MoveRelative",
                      setup_func,
index 0e1f82687001fcdbe6b51e86e1de14310e5df3db..860bf73af33704133fa38c9adc2c1a948b8ee28d 100644 (file)
@@ -25,7 +25,7 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node);
 static void     free_func(gpointer options);
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_moveresizeto_startup()
+void action_moveresizeto_startup(void)
 {
     actions_register("MoveResizeTo",
                      setup_func,
index 768783f2572ea6007706258edfc090635ab17645..5941bde97fa73979e0d8c2c89d2340d41152fc25 100644 (file)
@@ -13,7 +13,7 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node);
 static void     free_func(gpointer options);
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_movetoedge_startup()
+void action_movetoedge_startup(void)
 {
     actions_register("MoveToEdge",
                      setup_func,
index b6ba16223ffd69fbaf95ed1737501541580c881d..030a01592b9857df888dd768440cc964024de8eb 100644 (file)
@@ -4,7 +4,7 @@
 
 static gboolean run_func_toggle(ObActionsData *data, gpointer options);
 
-void action_omnipresent_startup()
+void action_omnipresent_startup(void)
 {
     actions_register("ToggleOmnipresent", NULL, NULL, run_func_toggle,
                      NULL, NULL);
index 916c27b50fba130be960d09310a2863881f0abcd..5dfe281a452458fbc9f2bbc1566ac5e8e16dd40a 100644 (file)
@@ -3,7 +3,7 @@
 
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_raise_startup()
+void action_raise_startup(void)
 {
     actions_register("Raise",
                      NULL, NULL,
index f75410ac455bf66be57d141dfa248c46ab230b2f..80fc917fc328db62e7b8bab7015625dccb9110b6 100644 (file)
@@ -3,7 +3,7 @@
 
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_raiselower_startup()
+void action_raiselower_startup(void)
 {
     actions_register("RaiseLower",
                      NULL, NULL,
index 8802a37b897d661d37a2002f53a69b3493db40f7..cef814149d6ac334e7358572df6316a300b304df 100644 (file)
@@ -3,7 +3,7 @@
 
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_reconfigure_startup()
+void action_reconfigure_startup(void)
 {
     actions_register("Reconfigure",
                      NULL, NULL,
index 26951370543a6687539fb18e8c8fa37fdec7247f..81901bddb55b9f9649fa43258d2750fb21414e40 100644 (file)
@@ -15,7 +15,7 @@ static gboolean run_func(ObActionsData *data, gpointer options);
 static guint32 pick_corner(gint x, gint y, gint cx, gint cy, gint cw, gint ch,
                            gboolean shaded);
 
-void action_resize_startup()
+void action_resize_startup(void)
 {
     actions_register("Resize",
                      setup_func,
index 668a063fec2ab0fd2989c9aad7a60f676f1be94e..f705c292bf8b75d4f30607cf6bf9875378e73ba0 100644 (file)
@@ -15,7 +15,7 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node);
 static void     free_func(gpointer options);
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_resizerelative_startup()
+void action_resizerelative_startup(void)
 {
     actions_register("ResizeRelative",
                      setup_func,
index fff0a87f8558a09c56ef2276de4880e4769eec89..4b52f9d36f4ee222bae649a4c71caead045d4791 100644 (file)
@@ -9,7 +9,7 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node);
 static void     free_func(gpointer options);
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_restart_startup()
+void action_restart_startup(void)
 {
     actions_register("Restart",
                      setup_func,
index a8db09899cc9cf5736a578032ff814f7a324b199..2342067fc429405b5939333e7d9cb34ca252877e 100644 (file)
@@ -5,7 +5,7 @@ static gboolean run_func_on(ObActionsData *data, gpointer options);
 static gboolean run_func_off(ObActionsData *data, gpointer options);
 static gboolean run_func_toggle(ObActionsData *data, gpointer options);
 
-void action_shade_startup()
+void action_shade_startup(void)
 {
     actions_register("Shade", NULL, NULL, run_func_on, NULL, NULL);
     actions_register("Unshade", NULL, NULL, run_func_off, NULL, NULL);
index 03528362962111c350a2e36523deee4f27becb94..c9ba86c4da22125343a01eeb8a37f2ceef13e4dc 100644 (file)
@@ -3,7 +3,7 @@
 
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_showdesktop_startup()
+void action_showdesktop_startup(void)
 {
     actions_register("ToggleShowDesktop",
                      NULL, NULL,
index a36648a2651c9fca896d736697cc3c20b238b972..c1d53e41d8c76fbc74ac7d147cccdcfa69b50fd7 100644 (file)
@@ -10,7 +10,7 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node);
 static void     free_func(gpointer options);
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_showmenu_startup()
+void action_showmenu_startup(void)
 {
     actions_register("ShowMenu", setup_func, free_func, run_func,
                      NULL, NULL);
index 0527d2a06d6dd7e986f3d488d9df5d79338fb313..22a9378cffaa593d7890a6a7f593b2bb986d08af 100644 (file)
@@ -3,7 +3,7 @@
 
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_unfocus_startup()
+void action_unfocus_startup(void)
 {
     actions_register("Unfocus", NULL, NULL, run_func, NULL, NULL);
 }
index 1dd48bf23ff95099ed62ffd02d5a24102698b255..d0fed5457c1e9e6d022c6fdebc4e496b35c6a1e3 100644 (file)
@@ -140,7 +140,7 @@ void client_remove_destroy_notify(ObClientCallback func)
     }
 }
 
-void client_set_list()
+void client_set_list(void)
 {
     Window *windows, *win_it;
     GList *it;
@@ -164,7 +164,7 @@ void client_set_list()
     stacking_set_list();
 }
 
-void client_manage_all()
+void client_manage_all(void)
 {
     guint i, j, nchild;
     Window w, *children;
@@ -637,7 +637,7 @@ ObClient *client_fake_manage(Window window)
     return self;
 }
 
-void client_unmanage_all()
+void client_unmanage_all(void)
 {
     while (client_list != NULL)
         client_unmanage(client_list->data);
@@ -4121,7 +4121,7 @@ void client_find_resize_directional(ObClient *self, ObDirection side,
     *h -= self->frame->size.top + self->frame->size.bottom;
 }
 
-ObClient* client_under_pointer()
+ObClient* client_under_pointer(void)
 {
     gint x, y;
     GList *it;
index 203d93aca1a381b161385feda9edc82e4d0e2b31..cf556744a35d0fca46910cab7623d5d28cca6b78 100644 (file)
@@ -352,7 +352,7 @@ static void client_menu_place(ObMenuFrame *frame, gint *x, gint *y,
     }
 }
 
-void client_menu_startup()
+void client_menu_startup(void)
 {
     ObMenu *menu;
     ObMenuEntry *e;
index cd38d7b9067901375a951a9103168ecf0ac0eed9..ff4c542b13fb17b78b7883731efda36c3a61a257 100644 (file)
@@ -96,7 +96,7 @@ gint     config_resist_edge;
 
 GSList *config_per_app_settings;
 
-ObAppSettings* config_create_app_settings()
+ObAppSettings* config_create_app_settings(void)
 {
     ObAppSettings *settings = g_new0(ObAppSettings, 1);
     settings->decor = -1;
@@ -785,7 +785,7 @@ typedef struct
     const gchar *actname;
 } ObDefKeyBind;
 
-static void bind_default_keyboard()
+static void bind_default_keyboard(void)
 {
     ObDefKeyBind *it;
     ObDefKeyBind binds[] = {
@@ -808,7 +808,7 @@ typedef struct
     const gchar *actname;
 } ObDefMouseBind;
 
-static void bind_default_mouse()
+static void bind_default_mouse(void)
 {
     ObDefMouseBind *it;
     ObDefMouseBind binds[] = {
@@ -962,7 +962,7 @@ void config_startup(ObParseInst *i)
     parse_register(i, "applications", parse_per_app_settings, NULL);
 }
 
-void config_shutdown()
+void config_shutdown(void)
 {
     GSList *it;
 
index 3b32758afc0d5fba131a0024d2628dd9cd5858b3..9d4b56c4706985807fa0554e2be5b2b9fc2e5f85 100644 (file)
@@ -189,7 +189,7 @@ void dock_add(Window win, XWMHints *wmhints)
     ob_debug("Managed Dock App: 0x%lx (%s)\n", app->icon_win, app->class);
 }
 
-void dock_remove_all()
+void dock_remove_all(void)
 {
     while (dock->dock_apps)
         dock_remove(dock->dock_apps->data, TRUE);
@@ -219,7 +219,7 @@ void dock_remove(ObDockApp *app, gboolean reparent)
     g_free(app);
 }
 
-void dock_configure()
+void dock_configure(void)
 {
     GList *it;
     gint hspot, vspot;
index eb6786501a7adc078fee3102661f6d3c075f0c47..822168f493999e354f02fa4f0c2e191fa2313d3e 100644 (file)
@@ -1579,7 +1579,7 @@ static void event_handle_dockapp(ObDockApp *app, XEvent *e)
     }
 }
 
-static ObMenuFrame* find_active_menu()
+static ObMenuFrame* find_active_menu(void)
 {
     GList *it;
     ObMenuFrame *ret = NULL;
@@ -1593,7 +1593,7 @@ static ObMenuFrame* find_active_menu()
     return ret;
 }
 
-static ObMenuFrame* find_active_or_last_menu()
+static ObMenuFrame* find_active_or_last_menu(void)
 {
     ObMenuFrame *ret = NULL;
 
@@ -1857,14 +1857,14 @@ static void focus_delay_client_dest(ObClient *client, gpointer data)
                                      client, FALSE);
 }
 
-void event_halt_focus_delay()
+void event_halt_focus_delay(void)
 {
     /* ignore all enter events up till now */
     event_end_ignore_all_enters(1);
     ob_main_loop_timeout_remove(ob_main_loop, focus_delay_func);
 }
 
-gulong event_start_ignore_all_enters()
+gulong event_start_ignore_all_enters(void)
 {
     XSync(ob_display, FALSE);
     return LastKnownRequestProcessed(ob_display);
@@ -1911,7 +1911,7 @@ static gboolean is_enter_focus_event_ignored(XEvent *e)
     return FALSE;
 }
 
-void event_cancel_all_key_grabs()
+void event_cancel_all_key_grabs(void)
 {
     if (actions_interactive_act_running()) {
         actions_interactive_cancel_act();
@@ -1958,7 +1958,7 @@ gboolean event_time_after(Time t1, Time t2)
         return t1 >= t2 && t1 < (t2 + TIME_HALF);
 }
 
-Time event_get_server_time()
+Time event_get_server_time(void)
 {
     /* Generate a timestamp */
     XEvent event;
index 89a965769970e8224d01029cf8c9a3f934b665cd..ee73e9ece512dfc6d964f411c119aacdd1c2c061 100644 (file)
@@ -34,7 +34,7 @@ gint     extensions_randr_event_basep;
 gboolean extensions_sync      = FALSE;
 gint     extensions_sync_event_basep;
 
-void extensions_query_all()
+void extensions_query_all(void)
 {
     gint junk;
     (void)junk;
index b056db7e466f3cde9c6b7c7ab4f3db58a011f5ca..df02cb7630bf7c9bff8dbc38f385437ba7f4db37 100644 (file)
@@ -178,7 +178,7 @@ ObClient* focus_fallback(gboolean allow_refocus, gboolean allow_pointer,
     return new;
 }
 
-void focus_nothing()
+void focus_nothing(void)
 {
     /* Install our own colormap */
     if (focus_client != NULL) {
index 8ce2c161058afe8890987af5af001c04d4450df0..488ecce12172491d2e30ee0d8a4756b0c3052e75 100644 (file)
@@ -460,7 +460,7 @@ void focus_cycle_popup_show(ObClient *c, gboolean iconic_windows,
     }
 }
 
-void focus_cycle_popup_hide()
+void focus_cycle_popup_hide(void)
 {
     gulong ignore_start;
 
@@ -523,7 +523,7 @@ void focus_cycle_popup_single_show(struct _ObClient *c,
     screen_hide_desktop_popup();
 }
 
-void focus_cycle_popup_single_hide()
+void focus_cycle_popup_single_hide(void)
 {
     icon_popup_hide(single_popup);
 }
index 3fa45b7c3d106eb2794a7029f7a40579cd079a72..43e9a8155a6bfeb3eb5dcb384be6d2f0278a7e20 100644 (file)
@@ -41,7 +41,7 @@ static guint pgrabs = 0;
 static Time  grab_time = CurrentTime;
 static gint passive_count = 0;
 
-static Time ungrab_time()
+static Time ungrab_time(void)
 {
     Time t = event_curtime;
     if (grab_time == CurrentTime ||
@@ -58,12 +58,12 @@ static Time ungrab_time()
     return t;
 }
 
-gboolean grab_on_keyboard()
+gboolean grab_on_keyboard(void)
 {
     return kgrabs > 0;
 }
 
-gboolean grab_on_pointer()
+gboolean grab_on_pointer(void)
 {
     return pgrabs > 0;
 }
@@ -218,7 +218,7 @@ void grab_key_passive_count(int change)
     if (passive_count < 0) passive_count = 0;
 }
 
-void ungrab_passive_key()
+void ungrab_passive_key(void)
 {
     /*ob_debug("ungrabbing %d passive grabs\n", passive_count);*/
     if (passive_count) {
index d80537a61c8453b0b712522ada066f1762622d2b..0aade9ab25459e38f99517d91e27f677fd217d82 100644 (file)
@@ -115,7 +115,7 @@ void keyboard_reset_chains(gint break_chroots)
     set_curpos(p);
 }
 
-void keyboard_unbind_all()
+void keyboard_unbind_all(void)
 {
     tree_destroy(keyboard_firstnode);
     keyboard_firstnode = NULL;
index 4e27d5ee6c343c99f9a421affb11a5d5b6ca8f4b..d9426e9062dcc17e715a49166576457eb21efed2 100644 (file)
@@ -147,7 +147,7 @@ static void clear_cache(gpointer key, gpointer val, gpointer data)
         menu_clear_entries(menu);
 }
 
-void menu_clear_pipe_caches()
+void menu_clear_pipe_caches(void)
 {
     /* delete any pipe menus' submenus */
     g_hash_table_foreach_remove(menu_hash, menu_pipe_submenu, NULL);
@@ -465,7 +465,7 @@ void menu_show(gchar *name, gint x, gint y, gboolean mouse, ObClient *client)
     }
 }
 
-gboolean menu_hide_delay_reached()
+gboolean menu_hide_delay_reached(void)
 {
     return menu_can_hide;
 }
index 944fa2e817b13b61ed100cd47e81813f024b7f50..979e834ff60d0f2c8f8edb1db3f04b255e302747 100644 (file)
@@ -1057,7 +1057,7 @@ static void menu_frame_hide(ObMenuFrame *self)
     menu_frame_free(self);
 }
 
-void menu_frame_hide_all()
+void menu_frame_hide_all(void)
 {
     GList *it;
 
index dbd48695277042f6caead446271b2c51434cd6ae..66615585fec0323f6ea8b4dc02eec96a790eb6f4 100644 (file)
@@ -142,7 +142,7 @@ static void grab_all_clients(gboolean grab)
         mouse_grab_for_client(it->data, grab);
 }
 
-void mouse_unbind_all()
+void mouse_unbind_all(void)
 {
     gint i;
     GSList *it;
index b5a318938e3b8c2cd4b148b2d94b200f3bc375eb..bb17d4a04f3f7b0153820c16dfaf2e23352001d2 100644 (file)
@@ -299,7 +299,7 @@ static void do_move(gboolean keyboard, gint keydist)
 }
 
 
-static void do_resize()
+static void do_resize(void)
 {
     gint x, y, w, h, lw, lh;
 
@@ -538,7 +538,7 @@ static void do_edge_warp(gint x, gint y)
     }
 }
 
-static void cancel_edge_warp()
+static void cancel_edge_warp(void)
 {
     ob_main_loop_timeout_remove(ob_main_loop, edge_warp_delay_func);
 }
index aaa7f6fdd1c8497bd0da1fa3b76b45443cdc584a..acc72146f5e32d8dcd972c7b4d86d267d93261fe 100644 (file)
@@ -29,7 +29,7 @@
 #include "render/render.h"
 #include "render/theme.h"
 
-ObPopup *popup_new()
+ObPopup *popup_new(void)
 {
     XSetWindowAttributes attrib;
     ObPopup *self = g_new0(ObPopup, 1);
@@ -315,7 +315,7 @@ static void icon_popup_draw_icon(gint x, gint y, gint w, gint h, gpointer data)
     RrPaint(self->a_icon, self->icon, w, h);
 }
 
-ObIconPopup *icon_popup_new()
+ObIconPopup *icon_popup_new(void)
 {
     ObIconPopup *self;
 
@@ -473,7 +473,7 @@ static void pager_popup_draw_icon(gint px, gint py, gint w, gint h,
     }
 }
 
-ObPagerPopup *pager_popup_new()
+ObPagerPopup *pager_popup_new(void)
 {
     ObPagerPopup *self;
 
index 40ae6ef299b5d6af4272fe0b85adf7e40c774cbf..44abdfe646bf0a5de2859380fa87d59b75dfd600 100644 (file)
@@ -27,7 +27,7 @@ Atoms prop_atoms;
 #define CREATE(var, name) (prop_atoms.var = \
                            XInternAtom(ob_display, name, FALSE))
 
-void prop_startup()
+void prop_startup(void)
 {
     CREATE(cardinal, "CARDINAL");
     CREATE(window, "WINDOW");
index 04a3b452be033989b99c5e8c614a965d7381e592..9ebeffee80691b07e20f5e54609f6450ea6def57 100644 (file)
@@ -52,9 +52,9 @@
                         ButtonPressMask | ButtonReleaseMask)
 
 static gboolean screen_validate_layout(ObDesktopLayout *l);
-static gboolean replace_wm();
-static void     screen_tell_ksplash();
-static void     screen_fallback_focus();
+static gboolean replace_wm(void);
+static void     screen_tell_ksplash(void);
+static void     screen_fallback_focus(void);
 
 guint    screen_num_desktops;
 guint    screen_num_monitors;
@@ -77,7 +77,7 @@ static GSList *struts_bottom = NULL;
 
 static ObPagerPopup *desktop_popup;
 
-static gboolean replace_wm()
+static gboolean replace_wm(void)
 {
     gchar *wm_sn;
     Atom wm_sn_atom;
@@ -149,7 +149,7 @@ static gboolean replace_wm()
     return TRUE;
 }
 
-gboolean screen_annex()
+gboolean screen_annex(void)
 {
     XSetWindowAttributes attrib;
     pid_t pid;
@@ -304,7 +304,7 @@ gboolean screen_annex()
     return TRUE;
 }
 
-static void screen_tell_ksplash()
+static void screen_tell_ksplash(void)
 {
     XEvent e;
     char **argv;
@@ -453,7 +453,7 @@ void screen_shutdown(gboolean reconfig)
     screen_desktop_names = NULL;
 }
 
-void screen_resize()
+void screen_resize(void)
 {
     static gint oldw = 0, oldh = 0;
     gint w, h;
@@ -536,7 +536,7 @@ void screen_set_num_desktops(guint num)
         screen_set_desktop(num - 1, TRUE);
 }
 
-static void screen_fallback_focus()
+static void screen_fallback_focus(void)
 {
     ObClient *c;
     gboolean allow_omni;
@@ -858,7 +858,7 @@ void screen_show_desktop_popup(guint d)
     g_free(a);
 }
 
-void screen_hide_desktop_popup()
+void screen_hide_desktop_popup(void)
 {
     ob_main_loop_timeout_remove(ob_main_loop, hide_desktop_popup_func);
     pager_popup_hide(desktop_popup);
@@ -1007,7 +1007,7 @@ static gboolean screen_validate_layout(ObDesktopLayout *l)
     return TRUE;
 }
 
-void screen_update_layout()
+void screen_update_layout(void)
 
 {
     ObDesktopLayout l;
@@ -1056,7 +1056,7 @@ void screen_update_layout()
     }
 }
 
-void screen_update_desktop_names()
+void screen_update_desktop_names(void)
 {
     guint i;
 
@@ -1218,7 +1218,7 @@ typedef struct {
     } \
 }
 
-void screen_update_areas()
+void screen_update_areas(void)
 {
     guint i, j;
     gulong *dims;
@@ -1532,7 +1532,7 @@ guint screen_find_monitor(Rect *search)
     return most;
 }
 
-Rect* screen_physical_area_all_monitors()
+Rect* screen_physical_area_all_monitors(void)
 {
     return screen_physical_area_monitor(screen_num_monitors);
 }
@@ -1554,7 +1554,7 @@ gboolean screen_physical_area_monitor_contains(guint head, Rect *search)
     return RECT_INTERSECTS_RECT(monitor_area[head], *search);
 }
 
-Rect* screen_physical_area_active()
+Rect* screen_physical_area_active(void)
 {
     Rect *a;
     gint x, y;
@@ -1574,7 +1574,7 @@ Rect* screen_physical_area_active()
     return a;
 }
 
-void screen_set_root_cursor()
+void screen_set_root_cursor(void)
 {
     if (sn_app_starting())
         XDefineCursor(ob_display, RootWindow(ob_display, ob_screen),
index 2a0d58525bcd81ca9affd7594e122e18e5844434..b23e6eac1ca4f0f4b4a542e2b6fae49d073b84fd 100644 (file)
@@ -29,7 +29,7 @@
 
 GList  *stacking_list = NULL;
 
-void stacking_set_list()
+void stacking_set_list(void)
 {
     Window *windows = NULL;
     GList *it;
index 1cf8da6fd9cd54c7d8579495432dcf87e47fb866..002bd2dc0521991af7dd9b9b73d9f2de06003eba 100644 (file)
@@ -106,7 +106,7 @@ static SnStartupSequence* sequence_find(const gchar *id)
     return ret;
 }
 
-gboolean sn_app_starting()
+gboolean sn_app_starting(void)
 {
     return sn_waits != NULL;
 }
@@ -264,7 +264,7 @@ void sn_setup_spawn_environment(gchar *program, gchar *name,
     g_free(desc);
 }
 
-void sn_spawn_cancel()
+void sn_spawn_cancel(void)
 {
     sn_launcher_context_complete(sn_launcher);
 }
index 8c2d012eaeb511e089c8f1fa01fb2a4f2268cc83..6daa8517ffd5f70e6893df44d2eabb56206b7cde 100644 (file)
@@ -46,7 +46,7 @@ static void destfunc(struct Callback *c)
     g_free(c);
 }
 
-ObParseInst* parse_startup()
+ObParseInst* parse_startup(void)
 {
     ObParseInst *i = g_new(ObParseInst, 1);
     i->callbacks = g_hash_table_new_full(g_str_hash, g_str_equal, NULL,
@@ -374,7 +374,7 @@ static GSList* split_paths(const gchar *paths)
     return list;
 }
 
-void parse_paths_startup()
+void parse_paths_startup(void)
 {
     const gchar *path;
 
@@ -436,7 +436,7 @@ void parse_paths_startup()
                                         (GSListFunc) g_slist_prepend);
 }
 
-void parse_paths_shutdown()
+void parse_paths_shutdown(void)
 {
     GSList *it;
 
@@ -512,22 +512,22 @@ gboolean parse_mkdir_path(const gchar *path, gint mode)
     return ret;
 }
 
-const gchar* parse_xdg_config_home_path()
+const gchar* parse_xdg_config_home_path(void)
 {
     return xdg_config_home_path;
 }
 
-const gchar* parse_xdg_data_home_path()
+const gchar* parse_xdg_data_home_path(void)
 {
     return xdg_data_home_path;
 }
 
-GSList* parse_xdg_config_dir_paths()
+GSList* parse_xdg_config_dir_paths(void)
 {
     return xdg_config_dir_paths;
 }
 
-GSList* parse_xdg_data_dir_paths()
+GSList* parse_xdg_data_dir_paths(void)
 {
     return xdg_data_dir_paths;
 }
This page took 0.082798 seconds and 4 git commands to generate.