diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2016-10-07 21:16:39 +0200 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:27 +0200 |
commit | 5dbcf198726838267dadd98f447973a8fb2d6505 (patch) | |
tree | 845006e813543a56d6cee34567cf1c9b4698ea66 /nx-X11/lib/X11 | |
parent | 1078f97706b77ab93fb30204acf270cfb652c900 (diff) | |
download | nx-libs-5dbcf198726838267dadd98f447973a8fb2d6505.tar.gz nx-libs-5dbcf198726838267dadd98f447973a8fb2d6505.tar.bz2 nx-libs-5dbcf198726838267dadd98f447973a8fb2d6505.zip |
Assume size_t is always available, since it was defined in C89
We have the same commit for XKBGAlloc.c but it was missing here since
upstream has dropped OpenDis.c when they switched to XCB.
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11')
-rw-r--r-- | nx-X11/lib/X11/OpenDis.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/nx-X11/lib/X11/OpenDis.c b/nx-X11/lib/X11/OpenDis.c index bb87a2285..89f1edab3 100644 --- a/nx-X11/lib/X11/OpenDis.c +++ b/nx-X11/lib/X11/OpenDis.c @@ -73,12 +73,6 @@ extern void *_X11TransSocketProxyConnInfo(XtransConnInfo); #endif #if !USE_XCB -#ifdef X_NOT_POSIX -#define Size_t unsigned int -#else -#define Size_t size_t -#endif - #define bignamelen (sizeof(XBigReqExtensionName) - 1) typedef struct { @@ -457,8 +451,8 @@ fallback_success: if (prefix.lengthReason > setuplength) { fprintf (stderr, "Xlib: Broken initial reply: length of reason > length of packet\r\n"); }else{ - (void) fwrite (u.failure, (Size_t)sizeof(char), - (Size_t)prefix.lengthReason, stderr); + (void) fwrite (u.failure, (size_t)sizeof(char), + (size_t)prefix.lengthReason, stderr); (void) fwrite ("\r\n", sizeof(char), 2, stderr); } |