summaryrefslogtreecommitdiff
path: root/src/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/error.c b/src/error.c
index 6caf66f..b9f527a 100644
--- a/src/error.c
+++ b/src/error.c
@@ -26,6 +26,7 @@ in this Software without prior written authorization from The Open Group.
Author: Ralph Mor, X Consortium
******************************************************************************/
+/* $XFree86: xc/lib/ICE/error.c,v 1.6 2001/12/14 19:53:35 dawes Exp $ */
#include <X11/ICE/ICElib.h>
#include "ICElibint.h"
@@ -33,10 +34,6 @@ Author: Ralph Mor, X Consortium
#include <errno.h>
-#ifdef X_NOT_STDC_ENV
-extern int errno;
-#endif
-
void
_IceErrorBadMinor (iceConn, majorOpcode, offendingMinor, severity)
@@ -428,7 +425,7 @@ IcePointer values;
fprintf (stderr, "ICE error: Offending minor opcode = %d (%s)\n",
offendingMinorOpcode, str);
- fprintf (stderr, " Offending sequence number = %d\n",
+ fprintf (stderr, " Offending sequence number = %lu\n",
offendingSequence);
switch (errorClass)
@@ -609,8 +606,8 @@ IceConn iceConn;
{
fprintf (stderr,
- "ICE default IO error handler doing an exit(), pid = %d, errno = %d\n",
- getpid(), errno);
+ "ICE default IO error handler doing an exit(), pid = %ld, errno = %d\n",
+ (long)getpid(), errno);
exit (1);
}