summaryrefslogtreecommitdiff
path: root/src/ParseGeom.c
diff options
context:
space:
mode:
authorEgbert Eich <eich@freedesktop.org>2004-04-23 18:42:09 +0000
committerEgbert Eich <eich@freedesktop.org>2004-04-23 18:42:09 +0000
commitc6349f43193b74a3c09945f3093a871b0157ba47 (patch)
treeaea173c19da6fa57e24eb4633ff815feb7ae3fa0 /src/ParseGeom.c
parentc3c4ddc682950a01b80825021f3e2503ab01ea7f (diff)
downloadxorg-lib-libX11-c6349f43193b74a3c09945f3093a871b0157ba47.tar.gz
Merging XORG-CURRENT into trunk
Diffstat (limited to 'src/ParseGeom.c')
-rw-r--r--src/ParseGeom.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/ParseGeom.c b/src/ParseGeom.c
index 6691c887..c00dc21a 100644
--- a/src/ParseGeom.c
+++ b/src/ParseGeom.c
@@ -27,6 +27,7 @@ other dealings in this Software without prior written authorization
from The Open Group.
*/
+/* $XFree86: xc/lib/X11/ParseGeom.c,v 1.3 2001/12/14 19:54:03 dawes Exp $ */
#include "Xlibint.h"
#include "Xutil.h"
@@ -62,9 +63,7 @@ char *search, *what;
*/
static int
-ReadInteger(string, NextString)
-register char *string;
-char **NextString;
+ReadInteger(char *string, char **NextString)
{
register int Result = 0;
int Sign = 1;
@@ -87,24 +86,18 @@ char **NextString;
return (-Result);
}
-#if NeedFunctionPrototypes
-int XParseGeometry (
+int
+XParseGeometry (
_Xconst char *string,
int *x,
int *y,
unsigned int *width, /* RETURN */
unsigned int *height) /* RETURN */
-#else
-int XParseGeometry (string, x, y, width, height)
-char *string;
-int *x, *y;
-unsigned int *width, *height; /* RETURN */
-#endif
{
int mask = NoValue;
register char *strind;
- unsigned int tempWidth, tempHeight;
- int tempX, tempY;
+ unsigned int tempWidth = 0, tempHeight = 0;
+ int tempX = 0, tempY = 0;
char *nextCharacter;
if ( (string == NULL) || (*string == '\0')) return(mask);