Remove global variables from header files

git-svn-id: http://tint2.googlecode.com/svn/trunk@671 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
o9000
2015-01-28 15:13:56 +00:00
committed by mrovi9000@gmail.com
parent 1a3ba21245
commit d584d04691
7 changed files with 21 additions and 21 deletions

View File

@@ -128,19 +128,14 @@ void init (int argc, char *argv[])
#ifdef HAVE_SN
static int error_trap_depth = 0;
static void
error_trap_push (SnDisplay *display,
Display *xdisplay)
static void error_trap_push(SnDisplay *display, Display *xdisplay)
{
++error_trap_depth;
}
static void
error_trap_pop (SnDisplay *display,
Display *xdisplay)
static void error_trap_pop(SnDisplay *display, Display *xdisplay)
{
if (error_trap_depth == 0)
{
if (error_trap_depth == 0) {
fprintf(stderr, "Error trap underflow!\n");
return;
}
@@ -157,8 +152,7 @@ static void sigchld_handler(int sig) {
ctx = (SnLauncherContext *) g_tree_lookup (server.pids, GINT_TO_POINTER (pid));
if (ctx == NULL) {
fprintf(stderr, "Unknown child %d terminated!\n", pid);
}
else {
} else {
g_tree_remove (server.pids, GINT_TO_POINTER (pid));
sn_launcher_context_complete (ctx);
sn_launcher_context_unref (ctx);