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
diff --git a/unix/vncviewer/CConn.h b/unix/vncviewer/CConn.h
index e3f17c3..294b9b1 100644
--- a/unix/vncviewer/CConn.h
+++ b/unix/vncviewer/CConn.h
@@ -83,8 +83,8 @@
   void serverCutText(const char* str, rdr::U32 len);
   void framebufferUpdateStart();
   void framebufferUpdateEnd();
-  void beginRect(const rfb::Rect& r, unsigned int encoding);
-  void endRect(const rfb::Rect& r, unsigned int encoding);
+  void beginRect(const rfb::Rect& r, int encoding);
+  void endRect(const rfb::Rect& r, int encoding);
   void fillRect(const rfb::Rect& r, rfb::Pixel p);
   void imageRect(const rfb::Rect& r, void* p);
   void copyRect(const rfb::Rect& r, int sx, int sy);
@@ -114,7 +114,7 @@
   TXEventHandler* desktopEventHandler;
   rfb::PixelFormat fullColourPF;
   std::list<rfb::Rect> debugRects;
-  unsigned int currentEncoding, lastServerEncoding;
+  int currentEncoding, lastServerEncoding;
   bool fullColour;
   bool autoSelect;
   bool shared;