diff options
author | dscho <dscho> | 2001-10-25 11:34:25 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-10-25 11:34:25 +0000 |
commit | a6e540172b43c3eb3aee87250ceacbd63d227a14 (patch) | |
tree | 0f3ad423efa3813ea7d4b548e1fa545f29b2d06d /rfbserver.c | |
parent | 8e455cad23689e15e2ef6793c8f030301bccb7eb (diff) | |
download | libtdevnc-a6e540172b43c3eb3aee87250ceacbd63d227a14.tar.gz libtdevnc-a6e540172b43c3eb3aee87250ceacbd63d227a14.zip |
clean ups
Diffstat (limited to 'rfbserver.c')
-rw-r--r-- | rfbserver.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rfbserver.c b/rfbserver.c index a4decae..48c6e66 100644 --- a/rfbserver.c +++ b/rfbserver.c @@ -401,7 +401,7 @@ rfbProcessClientProtocolVersion(cl) rfbClientPtr cl; { rfbProtocolVersionMsg pv; - int n, major, minor; + int n, major_, minor_; char failureReason[256]; if ((n = ReadExact(cl, pv, sz_rfbProtocolVersionMsg)) <= 0) { @@ -414,25 +414,25 @@ rfbProcessClientProtocolVersion(cl) } pv[sz_rfbProtocolVersionMsg] = 0; - if (sscanf(pv,rfbProtocolVersionFormat,&major,&minor) != 2) { + if (sscanf(pv,rfbProtocolVersionFormat,&major_,&minor_) != 2) { rfbLog("rfbProcessClientProtocolVersion: not a valid RFB client\n"); rfbCloseClient(cl); return; } - rfbLog("Protocol version %d.%d\n", major, minor); + rfbLog("Protocol version %d.%d\n", major_, minor_); - if (major != rfbProtocolMajorVersion) { + if (major_ != rfbProtocolMajorVersion) { /* Major version mismatch - send a ConnFailed message */ rfbLog("Major version mismatch\n"); sprintf(failureReason, "RFB protocol version mismatch - server %d.%d, client %d.%d", - rfbProtocolMajorVersion,rfbProtocolMinorVersion,major,minor); + rfbProtocolMajorVersion,rfbProtocolMinorVersion,major_,minor_); rfbClientConnFailed(cl, failureReason); return; } - if (minor != rfbProtocolMinorVersion) { + if (minor_ != rfbProtocolMinorVersion) { /* Minor version mismatch - warn but try to continue */ rfbLog("Ignoring minor version mismatch\n"); } |