From 118a3e77500b416c0c885e90ece4045e3a6decb2 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Wed, 7 Jun 2017 17:19:02 -0700 Subject: [PATCH] Correct signedness of window parameters used in XParseGeometry. Signed x, y, Unsigned width, height. modified: xinit.c modified: xlspwin.c modified: xrdopt.c --- src/xinit.c | 8 ++++---- src/xlspwin.c | 4 ++-- src/xrdopt.c | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/xinit.c b/src/xinit.c index dec558f..cdef2ca 100644 --- a/src/xinit.c +++ b/src/xinit.c @@ -72,11 +72,11 @@ int Byte_Order, Bitmap_Bit_Order, Bitmap_Pad, Default_Depth, Display_Height, Dis int LispWindowRequestedX = 0; int LispWindowRequestedY = 0; -int LispWindowRequestedWidth = DEF_WIN_WIDTH; -int LispWindowRequestedHeight = DEF_WIN_HEIGHT; +unsigned LispWindowRequestedWidth = DEF_WIN_WIDTH; +unsigned LispWindowRequestedHeight = DEF_WIN_HEIGHT; -int LispDisplayRequestedX, LispDisplayRequestedY, LispDisplayRequestedWidth, - LispDisplayRequestedHeight; +int LispDisplayRequestedX, LispDisplayRequestedY; +unsigned LispDisplayRequestedWidth, LispDisplayRequestedHeight; Colormap Colors; diff --git a/src/xlspwin.c b/src/xlspwin.c index caecafe..d55321e 100644 --- a/src/xlspwin.c +++ b/src/xlspwin.c @@ -60,8 +60,8 @@ XEvent report; Cursor WaitCursor, DefaultCursor, VertScrollCursor, VertThumbCursor, ScrollUpCursor, ScrollDownCursor, HorizScrollCursor, HorizThumbCursor, ScrollLeftCursor, ScrollRightCursor; -extern int LispWindowRequestedX, LispWindowRequestedY, LispWindowRequestedWidht, - LispWindowRequestedHeight; +extern int LispWindowRequestedX, LispWindowRequestedY; +extern unsigned LispWindowRequestedWidth, LispWindowRequestedHeight; /************************************************************************/ /* */ diff --git a/src/xrdopt.c b/src/xrdopt.c index f44daef..9a76e3d 100644 --- a/src/xrdopt.c +++ b/src/xrdopt.c @@ -42,11 +42,11 @@ static char *id = "$Id: xrdopt.c,v 1.6 2001/12/26 22:17:07 sybalsky Exp $ Copyri XrmDatabase commandlineDB, applicationDB, serverDB, homeDB, rDB; int opTableEntries = 33; -extern int LispWindowRequestedX, LispWindowRequestedY, LispWindowRequestedWidth, - LispWindowRequestedHeight; +extern int LispWindowRequestedX, LispWindowRequestedY; +extern unsigned LispWindowRequestedWidth, LispWindowRequestedHeight; -extern int LispDisplayRequestedX, LispDisplayRequestedY, LispDisplayRequestedWidth, - LispDisplayRequestedHeight; +extern int LispDisplayRequestedX, LispDisplayRequestedY; +extern unsigned LispDisplayRequestedWidth, LispDisplayRequestedHeight; extern int xsync;