summaryrefslogtreecommitdiff
path: root/lib/libICE/include
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2019-08-04 13:35:30 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2019-08-04 13:35:30 +0000
commit5b5943a95b135ebb14fd03b6288b1a5aeb49d635 (patch)
tree7c4a6f92ba319381b1e6ac4adb30c5a9c91151b0 /lib/libICE/include
parent61c7fdf789e74f185d2a8111578a218b94d24b63 (diff)
update to libICE 1.0.10
Diffstat (limited to 'lib/libICE/include')
-rw-r--r--lib/libICE/include/X11/ICE/ICEmsg.h12
-rw-r--r--lib/libICE/include/X11/ICE/ICEproto.h32
2 files changed, 18 insertions, 26 deletions
diff --git a/lib/libICE/include/X11/ICE/ICEmsg.h b/lib/libICE/include/X11/ICE/ICEmsg.h
index f6e712175..98844660f 100644
--- a/lib/libICE/include/X11/ICE/ICEmsg.h
+++ b/lib/libICE/include/X11/ICE/ICEmsg.h
@@ -214,16 +214,8 @@ extern IcePaAuthStatus _IcePaMagicCookie1Proc (
#define IceWritePad(_iceConn, _bytes) \
{ \
- if ((_iceConn->outbufptr + (_bytes)) > _iceConn->outbufmax) \
- { \
- char _dummy[7] = { 0 }; \
- IceFlush (_iceConn); \
- _IceWrite (_iceConn, (unsigned long) (_bytes), _dummy); \
- } \
- else \
- { \
- _iceConn->outbufptr += (_bytes); \
- } \
+ char _dummy[7] = { 0 }; \
+ IceWriteData (_iceConn, (_bytes), _dummy); \
}
diff --git a/lib/libICE/include/X11/ICE/ICEproto.h b/lib/libICE/include/X11/ICE/ICEproto.h
index 1fcbe6bb0..572663130 100644
--- a/lib/libICE/include/X11/ICE/ICEproto.h
+++ b/lib/libICE/include/X11/ICE/ICEproto.h
@@ -35,18 +35,18 @@ typedef struct {
CARD8 majorOpcode;
CARD8 minorOpcode;
CARD8 data[2];
- CARD32 length B32;
+ CARD32 length;
} iceMsg;
typedef struct {
CARD8 majorOpcode;
CARD8 minorOpcode;
- CARD16 errorClass B16;
- CARD32 length B32;
+ CARD16 errorClass;
+ CARD32 length;
CARD8 offendingMinorOpcode;
CARD8 severity;
- CARD16 unused B16;
- CARD32 offendingSequenceNum B32;
+ CARD16 unused;
+ CARD32 offendingSequenceNum;
/* n varying values */
/* p p = pad (n, 8) */
} iceErrorMsg;
@@ -56,7 +56,7 @@ typedef struct {
CARD8 minorOpcode;
CARD8 byteOrder;
CARD8 unused;
- CARD32 length B32;
+ CARD32 length;
} iceByteOrderMsg;
typedef struct {
@@ -64,7 +64,7 @@ typedef struct {
CARD8 minorOpcode;
CARD8 versionCount;
CARD8 authCount;
- CARD32 length B32;
+ CARD32 length;
CARD8 mustAuthenticate;
CARD8 unused[7];
/* i STRING vendor */
@@ -79,8 +79,8 @@ typedef struct {
CARD8 minorOpcode;
CARD8 authIndex;
CARD8 unused1;
- CARD32 length B32;
- CARD16 authDataLength B16;
+ CARD32 length;
+ CARD16 authDataLength;
CARD8 unused2[6];
/* n varying data */
/* p p = pad (n, 8) */
@@ -90,8 +90,8 @@ typedef struct {
CARD8 majorOpcode;
CARD8 minorOpcode;
CARD8 unused1[2];
- CARD32 length B32;
- CARD16 authDataLength B16;
+ CARD32 length;
+ CARD16 authDataLength;
CARD8 unused2[6];
/* n varying data */
/* p p = pad (n, 8) */
@@ -101,8 +101,8 @@ typedef struct {
CARD8 majorOpcode;
CARD8 minorOpcode;
CARD8 unused1[2];
- CARD32 length B32;
- CARD16 authDataLength B16;
+ CARD32 length;
+ CARD16 authDataLength;
CARD8 unused2[6];
/* n varying data */
/* p p = pad (n, 8) */
@@ -113,7 +113,7 @@ typedef struct {
CARD8 minorOpcode;
CARD8 versionIndex;
CARD8 unused;
- CARD32 length B32;
+ CARD32 length;
/* i STRING vendor */
/* j STRING release */
/* p p = pad (i+j, 8) */
@@ -124,7 +124,7 @@ typedef struct {
CARD8 minorOpcode;
CARD8 protocolOpcode;
CARD8 mustAuthenticate;
- CARD32 length B32;
+ CARD32 length;
CARD8 versionCount;
CARD8 authCount;
CARD8 unused[6];
@@ -141,7 +141,7 @@ typedef struct {
CARD8 minorOpcode;
CARD8 versionIndex;
CARD8 protocolOpcode;
- CARD32 length B32;
+ CARD32 length;
/* i STRING vendor */
/* j STRING release */
/* p p = pad (i+j, 8) */