From 5030d53ff08665d27e388244aa22b272716240bc Mon Sep 17 00:00:00 2001 From: dscho Date: Sun, 9 Feb 2003 15:04:00 +0000 Subject: converted CARD{8,16,32} to uint{8,16,32}_t and included support for stdint.h --- auth.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'auth.c') diff --git a/auth.c b/auth.c index b903425..7833404 100644 --- a/auth.c +++ b/auth.c @@ -26,8 +26,6 @@ * USA. */ -#include -#include #include "rfb.h" /* @@ -46,12 +44,12 @@ rfbAuthNewClient(cl) cl->state = RFB_AUTHENTICATION; if (cl->screen->rfbAuthPasswdData && !cl->reverseConnection) { - *(CARD32 *)buf = Swap32IfLE(rfbVncAuth); + *(uint32_t *)buf = Swap32IfLE(rfbVncAuth); vncRandomBytes(cl->authChallenge); memcpy(&buf[4], (char *)cl->authChallenge, CHALLENGESIZE); len = 4 + CHALLENGESIZE; } else { - *(CARD32 *)buf = Swap32IfLE(rfbNoAuth); + *(uint32_t *)buf = Swap32IfLE(rfbNoAuth); len = 4; cl->state = RFB_INITIALISATION; } @@ -74,8 +72,8 @@ rfbAuthProcessClientMessage(cl) rfbClientPtr cl; { int n; - CARD8 response[CHALLENGESIZE]; - CARD32 authResult; + uint8_t response[CHALLENGESIZE]; + uint32_t authResult; if ((n = ReadExact(cl, (char *)response, CHALLENGESIZE)) <= 0) { if (n != 0) -- cgit v1.2.3