summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:29:18 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:29:18 +0000
commitd0721af92ab08fc526c7c432ecc6273717cecae0 (patch)
tree7c2e3e88ae0d077675f3263526e92dfcf5b4f35e
parentac8c3cf394fb9d0eb57332ea7b2d12fb3c4a396d (diff)
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_903_specialxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16xf86-012804-2330
-rw-r--r--choose.c12
-rw-r--r--prop.c6
-rw-r--r--xsm.c3
3 files changed, 12 insertions, 9 deletions
diff --git a/choose.c b/choose.c
index c5806f0..8abee3f 100644
--- a/choose.c
+++ b/choose.c
@@ -23,7 +23,7 @@ Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
******************************************************************************/
-/* $XFree86: xc/programs/xsm/choose.c,v 1.5 2001/12/14 20:02:24 dawes Exp $ */
+/* $XFree86: xc/programs/xsm/choose.c,v 1.7 2003/07/20 16:12:21 tsi Exp $ */
#include "xsm.h"
#include "saveutil.h"
@@ -144,7 +144,12 @@ GetSessionNames(int *count_ret, String **short_names_ret,
else
{
char *host = ((char *) strchr (id, '/')) + 1;
- char *colon = (char *) strchr (host, ':');
+ char *colon = (char *) strrchr (host, ':');
+
+ /* backtrack over previous colon if there are 2 (DECnet),
+ but not three (IPv6) */
+ if ((*(colon - 1) == ':') && (*(colon - 2) != ':'))
+ colon--;
*colon = '\0';
@@ -584,7 +589,6 @@ ChooseSessionBreakLockXtProc(Widget w, XtPointer client_data,
}
else
{
- char *id;
int longest;
XtVaSetValues (chooseSessionMessageLabel,
@@ -593,7 +597,7 @@ ChooseSessionBreakLockXtProc(Widget w, XtPointer client_data,
name = sessionNamesShort[current->list_index];
- id = GetLockId (name);
+ (void) GetLockId (name);
UnlockSession (name);
diff --git a/prop.c b/prop.c
index 5255a0b..18b9551 100644
--- a/prop.c
+++ b/prop.c
@@ -23,7 +23,7 @@ Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
******************************************************************************/
-/* $XFree86: xc/programs/xsm/prop.c,v 1.5 2001/12/14 20:02:26 dawes Exp $ */
+/* $XFree86: xc/programs/xsm/prop.c,v 1.6 2003/03/26 20:44:00 tsi Exp $ */
#include "xsm.h"
#include "info.h"
@@ -191,7 +191,7 @@ SetProperty(ClientRec *client, SmProp *theProp, Bool freeIt)
if (client->saveDiscardCommand)
XtFree (client->saveDiscardCommand);
client->saveDiscardCommand =
- (char *) XtNewString (theProp->vals[0].value);
+ (char *) XtNewString ((char *) theProp->vals[0].value);
client->receivedDiscardCommand = True;
}
@@ -200,7 +200,7 @@ SetProperty(ClientRec *client, SmProp *theProp, Bool freeIt)
if (client->discardCommand)
XtFree (client->discardCommand);
client->discardCommand =
- (char *) XtNewString (theProp->vals[0].value);
+ (char *) XtNewString ((char *) theProp->vals[0].value);
}
}
else if (strcmp (theProp->name, SmRestartStyleHint) == 0)
diff --git a/xsm.c b/xsm.c
index 618cdd2..47fdced 100644
--- a/xsm.c
+++ b/xsm.c
@@ -23,7 +23,7 @@ Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
******************************************************************************/
-/* $XFree86: xc/programs/xsm/xsm.c,v 1.9 2001/12/14 20:02:27 dawes Exp $ */
+/* $XFree86: xc/programs/xsm/xsm.c,v 1.10 2003/09/13 21:33:12 dawes Exp $ */
/*
* X Session Manager.
@@ -100,7 +100,6 @@ extern Widget checkPointButton;
extern Widget shutdownButton;
extern Widget clientListWidget;
extern Widget savePopup;
-extern XtSignalId sig_term_id, sig_usr1_id;
extern int checkpoint_from_signal;