From 556eb7b7fb20b3b0db03b6d92259ad3bb16dccde Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 4 Sep 2007 06:21:22 +0200 Subject: ANSI function declarations, ie () -> (void) --- openbox/startupnotify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/startupnotify.c') diff --git a/openbox/startupnotify.c b/openbox/startupnotify.c index 1cf8da6f..002bd2dc 100644 --- a/openbox/startupnotify.c +++ b/openbox/startupnotify.c @@ -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); } -- cgit v1.2.3 From 8cdf412aed60bd4c943281b2a6e577ed68f5ba18 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 18 Oct 2007 08:21:53 +0200 Subject: Change setenv and unsetenv to putenv for portability. Solaris apparently does not have setenv and unsetenv. --- openbox/startupnotify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/startupnotify.c') diff --git a/openbox/startupnotify.c b/openbox/startupnotify.c index 002bd2dc..4c929e7e 100644 --- a/openbox/startupnotify.c +++ b/openbox/startupnotify.c @@ -61,7 +61,7 @@ void sn_startup(gboolean reconfig) if (reconfig) return; /* unset this so we don't pass it on unknowingly */ - unsetenv("DESKTOP_STARTUP_ID"); + putenv("DESKTOP_STARTUP_ID"); sn_display = sn_display_new(ob_display, NULL, NULL); sn_context = sn_monitor_context_new(sn_display, ob_screen, @@ -259,7 +259,7 @@ void sn_setup_spawn_environment(gchar *program, gchar *name, g_direct_equal, (GDestroyNotify)sn_launcher_context_unref); - setenv("DESKTOP_STARTUP_ID", id, TRUE); + putenv(g_strdup_printf("DESKTOP_STARTUP_ID=%s", id)); g_free(desc); } -- cgit v1.2.3