gnome-session r5128 - in trunk: . tools



Author: fpeters
Date: Mon Sep 29 15:16:06 2008
New Revision: 5128
URL: http://svn.gnome.org/viewvc/gnome-session?rev=5128&view=rev

Log:
* tools/gnome-session-save.c: (main): rename kill variable to
kill_session to avoid conflict with kill(2).  Fixes: #554202.



Modified:
   trunk/ChangeLog
   trunk/tools/gnome-session-save.c

Modified: trunk/tools/gnome-session-save.c
==============================================================================
--- trunk/tools/gnome-session-save.c	(original)
+++ trunk/tools/gnome-session-save.c	Mon Sep 29 15:16:06 2008
@@ -45,7 +45,7 @@
 
 /* True if killing. This is deprecated, but we keep it for compatibility
  * reasons. */
-static gboolean kill = FALSE;
+static gboolean kill_session = FALSE;
 
 /* The real options that should be used now. They are not ambiguous. */
 static gboolean logout = FALSE;
@@ -67,7 +67,7 @@
         {"force-logout", '\0', 0, G_OPTION_ARG_NONE, &force_logout, N_("Log out, ignoring any existing inhibitors"), NULL},
         {"logout-dialog", '\0', 0, G_OPTION_ARG_NONE, &logout_dialog, N_("Show logout dialog"), NULL},
         {"shutdown-dialog", '\0', 0, G_OPTION_ARG_NONE, &shutdown_dialog, N_("Show shutdown dialog"), NULL},
-        {"kill", '\0', 0, G_OPTION_ARG_NONE, &kill, N_("Kill session"), NULL},
+        {"kill", '\0', 0, G_OPTION_ARG_NONE, &kill_session, N_("Kill session"), NULL},
         {"gui",  '\0', 0, G_OPTION_ARG_NONE, &show_error_dialogs, N_("Use dialog boxes for errors"), NULL},
         {"silent", '\0', 0, G_OPTION_ARG_NONE, &no_interaction, N_("Do not require confirmation"), NULL},
         {NULL}
@@ -259,7 +259,7 @@
         }
 
         conflicting_options = 0;
-        if (kill)
+        if (kill_session)
                 conflicting_options++;
         if (logout)
                 conflicting_options++;
@@ -272,7 +272,7 @@
         if (conflicting_options > 1)
                 display_error (_("Program called with conflicting options"));
 
-        if (kill) {
+        if (kill_session) {
                 if (no_interaction)
                         logout = TRUE;
                 else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]