From fc4b29631fc666cbbeec06bde29b7ef1a3aefe46 Mon Sep 17 00:00:00 2001 From: o9000 Date: Tue, 20 Jan 2015 02:20:35 +0000 Subject: [PATCH] Cleanup whitespace git-svn-id: http://tint2.googlecode.com/svn/trunk@654 121b4492-b84c-0410-8b4c-0d4edfb3f3cc --- src/tint.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/tint.c b/src/tint.c index b8f2021..b3fd157 100644 --- a/src/tint.c +++ b/src/tint.c @@ -150,16 +150,16 @@ error_trap_pop (SnDisplay *display, } static void sigchld_handler(int sig) { - // Wait for all dead processes - pid_t pid; - while ((pid = waitpid(-1, NULL, WNOHANG)) > 0) { - SnLauncherContext *ctx; + // Wait for all dead processes + pid_t pid; + while ((pid = waitpid(-1, NULL, WNOHANG)) > 0) { + SnLauncherContext *ctx; ctx = (SnLauncherContext *) g_tree_lookup (server.pids, GINT_TO_POINTER (pid)); if (ctx == NULL) { - fprintf(stderr, "Unknown child %d terminated!\n", pid); + fprintf(stderr, "Unknown child %d terminated!\n", pid); } else { - g_tree_remove (server.pids, GINT_TO_POINTER (pid)); + g_tree_remove (server.pids, GINT_TO_POINTER (pid)); sn_launcher_context_complete (ctx); sn_launcher_context_unref (ctx); } @@ -167,12 +167,12 @@ static void sigchld_handler(int sig) { } static gint cmp_ptr(gconstpointer a, gconstpointer b) { - if (a < b) - return -1; + if (a < b) + return -1; else if (a == b) - return 0; + return 0; else - return 1; + return 1; } #endif // HAVE_SN @@ -998,7 +998,7 @@ void dnd_drop(XClientMessageEvent *e) //The source is sending anyway, despite instructions to the contrary. //So reply that we're not interested. XClientMessageEvent m; - memset(&m, 0, sizeof(m)); + memset(&m, 0, sizeof(m)); m.type = ClientMessage; m.display = e->display; m.window = e->data.l[0]; @@ -1304,7 +1304,7 @@ start: // Reply OK. XClientMessageEvent m; - memset(&m, 0, sizeof(m)); + memset(&m, 0, sizeof(m)); m.type = ClientMessage; m.display = server.dsp; m.window = dnd_source_window;