]> Dogcows Code - chaz/openbox/commitdiff
() -> (void)
authorMikael Magnusson <mikachu@comhem.se>
Fri, 15 Feb 2008 15:15:00 +0000 (16:15 +0100)
committerMikael Magnusson <mikachu@comhem.se>
Fri, 15 Feb 2008 15:21:35 +0000 (16:21 +0100)
obt/display.c
obt/keyboard.c
obt/mainloop.c
obt/prop.c
obt/xevent.c
openbox/mouse.c
openbox/openbox.c
openbox/session.c

index d72f8ad6d5fc18756d73d56115a583a41591f5ae..72c1b4d64f93d27f64511b2d29ae117afa04362d 100644 (file)
@@ -117,7 +117,7 @@ gboolean obt_display_open(const char *display_name)
     return obt_display != NULL;
 }
 
-void obt_display_close()
+void obt_display_close(void)
 {
     obt_keyboard_shutdown();
     if (obt_display) XCloseDisplay(obt_display);
index 710a94c23b33ccad97af9421f514214a71b474e8..699fa8baccbd55accf1d32f7680e6b9495936301 100644 (file)
@@ -49,7 +49,7 @@ static gboolean hyper_l = FALSE;
 
 static gboolean started = FALSE;
 
-void obt_keyboard_reload()
+void obt_keyboard_reload(void)
 {
     gint i, j, k;
 
@@ -97,7 +97,7 @@ void obt_keyboard_reload()
     modkeys_keys[OBT_KEYBOARD_MODKEY_CONTROL] = ControlMask;
 }
 
-void obt_keyboard_shutdown()
+void obt_keyboard_shutdown(void)
 {
     XFreeModifiermap(modmap);
     modmap = NULL;
index 64972dd708eb17aecec0fae7fa9190d6c1be12aa..691c6875174585e7352bbf7d842e351407de5e8a 100644 (file)
@@ -140,7 +140,7 @@ struct _ObtMainLoopFdHandlerType
     GDestroyNotify destroy;
 };
 
-ObtMainLoop *obt_main_loop_new()
+ObtMainLoop *obt_main_loop_new(void)
 {
     ObtMainLoop *loop;
 
index 5fe0f730615f47e808bca59bd53c093621689913..108c118496782f86a4cc5a713c666cb669abd3d4 100644 (file)
@@ -33,7 +33,7 @@ gboolean prop_started = FALSE;
 #define CREATE(var) CREATE_NAME(var, #var)
 #define CREATE_(var) CREATE_NAME(var, "_" #var)
 
-void obt_prop_startup()
+void obt_prop_startup(void)
 {
     if (prop_started) return;
     prop_started = TRUE;
index 9732c8f9a27d24046b4c3f4db8e4842444546512..1cc32a94d3eb32deeba960b59cee5eb688fb7c7f 100644 (file)
@@ -44,7 +44,7 @@ static void xevent_handler(const XEvent *e, gpointer data);
 static guint window_hash(Window *w) { return *w; }
 static gboolean window_comp(Window *w1, Window *w2) { return *w1 == *w2; }
 
-ObtXEventHandler* xevent_new()
+ObtXEventHandler* xevent_new(void)
 {
     ObtXEventHandler *h;
 
index ae9a6fc299b88a6877e53efeb470e504dab711c5..0233ac386da1d3c8045bd022c30c10246cd87880 100644 (file)
@@ -202,7 +202,7 @@ static gboolean fire_binding(ObMouseAction a, ObFrameContext context,
     return TRUE;
 }
 
-void mouse_replay_pointer()
+void mouse_replay_pointer(void)
 {
     if (replay_pointer_needed) {
         /* replay the pointer event before any windows move */
index f7d820e0111a5a834003df2fadc2c821fa3c7b96..d6da5ec7a60aee9e390883fbf3c1fe3991809c6c 100644 (file)
@@ -467,7 +467,7 @@ static void signal_handler(gint signal, gpointer data)
     }
 }
 
-static void print_version()
+static void print_version(void)
 {
     g_print("Openbox %s\n", PACKAGE_VERSION);
     g_print(_("Copyright (c)"));
@@ -479,7 +479,7 @@ static void print_version()
     g_print("under certain conditions. See the file COPYING for details.\n\n");
 }
 
-static void print_help()
+static void print_help(void)
 {
     g_print(_("Syntax: openbox [options]\n"));
     g_print(_("\nOptions:\n"));
@@ -512,7 +512,7 @@ static void remove_args(gint *argc, gchar **argv, gint index, gint num)
     *argc -= num;
 }
 
-static void parse_env()
+static void parse_env(void)
 {
     /* unset this so we don't pass it on unknowingly */
     unsetenv("DESKTOP_STARTUP_ID");
@@ -644,13 +644,13 @@ void ob_restart_other(const gchar *path)
     ob_restart();
 }
 
-void ob_restart()
+void ob_restart(void)
 {
     restart = TRUE;
     ob_exit(0);
 }
 
-void ob_reconfigure()
+void ob_reconfigure(void)
 {
     reconfigure = TRUE;
     ob_exit(0);
@@ -662,7 +662,7 @@ void ob_exit(gint code)
     obt_main_loop_exit(ob_main_loop);
 }
 
-void ob_exit_replace()
+void ob_exit_replace(void)
 {
     exitcode = 0;
     being_replaced = TRUE;
@@ -681,7 +681,7 @@ KeyCode ob_keycode(ObKey key)
     return keys[key];
 }
 
-ObState ob_state()
+ObState ob_state(void)
 {
     return state;
 }
index 267d17ef54ebb9582ca76b1f0ea5b2af8f308935..3822d41483b688662cb9b445a657ac83fc016710 100644 (file)
@@ -159,7 +159,7 @@ void session_shutdown(gboolean permanent)
 }
 
 /*! Connect to the session manager and set up our callback functions */
-static gboolean session_connect()
+static gboolean session_connect(void)
 {
     SmcCallbacks cb;
     gchar *oldid;
@@ -193,7 +193,7 @@ static gboolean session_connect()
     return sm_conn != NULL;
 }
 
-static void session_setup_program()
+static void session_setup_program(void)
 {
     SmPropValue vals = {
         .value = sm_argv[0],
@@ -212,7 +212,7 @@ static void session_setup_program()
     g_free(prop.type);
 }
 
-static void session_setup_user()
+static void session_setup_user(void)
 {
     char *user = g_strdup(g_get_user_name());
 
@@ -255,7 +255,7 @@ static void session_setup_restart_style(gboolean restart)
     g_free(prop.type);
 }
 
-static void session_setup_pid()
+static void session_setup_pid(void)
 {
     gchar *pid = g_strdup_printf("%ld", (glong) getpid());
 
@@ -278,7 +278,7 @@ static void session_setup_pid()
 }
 
 /*! This is a gnome-session-manager extension */
-static void session_setup_priority()
+static void session_setup_priority(void)
 {
     gchar priority = 20; /* 20 is a lower prioity to run before other apps */
 
@@ -299,7 +299,7 @@ static void session_setup_priority()
     g_free(prop.type);
 }
 
-static void session_setup_clone_command()
+static void session_setup_clone_command(void)
 {
     gint i;
 
@@ -325,7 +325,7 @@ static void session_setup_clone_command()
     g_free(vals);
 }
 
-static void session_setup_restart_command()
+static void session_setup_restart_command(void)
 {
     gint i;
 
@@ -367,7 +367,7 @@ static void session_setup_restart_command()
     g_free(vals);
 }
 
-static ObSMSaveData *sm_save_get_data()
+static ObSMSaveData *sm_save_get_data(void)
 {
     ObSMSaveData *savedata = g_new0(ObSMSaveData, 1);
     /* save the active desktop and client.
This page took 0.032429 seconds and 4 git commands to generate.