diff options
author | Peter Åstrand <astrand@cendio.se> | 2010-02-10 07:43:02 +0000 |
---|---|---|
committer | Peter Åstrand <astrand@cendio.se> | 2010-02-10 07:43:02 +0000 |
commit | 98fe98c68939fee9bdf492e813a50f239674b733 (patch) | |
tree | 99935d1420b497c483a98ca193759b7d31fdeffd /win/vncviewer | |
parent | 618c1707a4d29e1d6efda633fadaaf81d1f80062 (diff) | |
download | tigervnc-98fe98c68939fee9bdf492e813a50f239674b733.tar.gz tigervnc-98fe98c68939fee9bdf492e813a50f239674b733.zip |
Eliminate GCC signed/unsigned warnings related to encodings: The
encoding in the RFB protocol has always been signed, and signed values
are also used in the specification (ie DesktopName = -307 etc). In the
code, however, unsigned types were used in a number of places, but not
all, which causes warnings. This patch fixes the problem by switching
to signed values everywhere.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3968 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/vncviewer')
-rw-r--r-- | win/vncviewer/CConn.cxx | 4 | ||||
-rw-r--r-- | win/vncviewer/CConn.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/win/vncviewer/CConn.cxx b/win/vncviewer/CConn.cxx index af38e0fd..286c701d 100644 --- a/win/vncviewer/CConn.cxx +++ b/win/vncviewer/CConn.cxx @@ -769,11 +769,11 @@ CConn::serverCutText(const char* str, rdr::U32 len) { } -void CConn::beginRect(const Rect& r, unsigned int encoding) { +void CConn::beginRect(const Rect& r, int encoding) { sock->inStream().startTiming(); } -void CConn::endRect(const Rect& r, unsigned int encoding) { +void CConn::endRect(const Rect& r, int encoding) { sock->inStream().stopTiming(); lastUsedEncoding_ = encoding; if (debugDelay != 0) { diff --git a/win/vncviewer/CConn.h b/win/vncviewer/CConn.h index bf7fd06a..5f758435 100644 --- a/win/vncviewer/CConn.h +++ b/win/vncviewer/CConn.h @@ -106,8 +106,8 @@ namespace rfb { void setName(const char* name); void serverInit(); void serverCutText(const char* str, rdr::U32 len); - void beginRect(const Rect& r, unsigned int encoding); - void endRect(const Rect& r, unsigned int encoding); + void beginRect(const Rect& r, int encoding); + void endRect(const Rect& r, int encoding); void fillRect(const Rect& r, Pixel pix); void imageRect(const Rect& r, void* pixels); void copyRect(const Rect& r, int srcX, int srcY); |