Commit 5dbcf198 authored by Ulrich Sibiller's avatar Ulrich Sibiller

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: 's avatarUlrich Sibiller <uli42@gmx.de>
parent 1078f977
...@@ -73,12 +73,6 @@ extern void *_X11TransSocketProxyConnInfo(XtransConnInfo); ...@@ -73,12 +73,6 @@ extern void *_X11TransSocketProxyConnInfo(XtransConnInfo);
#endif #endif
#if !USE_XCB #if !USE_XCB
#ifdef X_NOT_POSIX
#define Size_t unsigned int
#else
#define Size_t size_t
#endif
#define bignamelen (sizeof(XBigReqExtensionName) - 1) #define bignamelen (sizeof(XBigReqExtensionName) - 1)
typedef struct { typedef struct {
...@@ -457,8 +451,8 @@ fallback_success: ...@@ -457,8 +451,8 @@ fallback_success:
if (prefix.lengthReason > setuplength) { if (prefix.lengthReason > setuplength) {
fprintf (stderr, "Xlib: Broken initial reply: length of reason > length of packet\r\n"); fprintf (stderr, "Xlib: Broken initial reply: length of reason > length of packet\r\n");
}else{ }else{
(void) fwrite (u.failure, (Size_t)sizeof(char), (void) fwrite (u.failure, (size_t)sizeof(char),
(Size_t)prefix.lengthReason, stderr); (size_t)prefix.lengthReason, stderr);
(void) fwrite ("\r\n", sizeof(char), 2, stderr); (void) fwrite ("\r\n", sizeof(char), 2, stderr);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment