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/common/rfb/Decoder.cxx b/common/rfb/Decoder.cxx
index b6e4fd5..61d8bce 100644
--- a/common/rfb/Decoder.cxx
+++ b/common/rfb/Decoder.cxx
@@ -32,19 +32,19 @@
 
 DecoderCreateFnType Decoder::createFns[encodingMax+1] = { 0 };
 
-bool Decoder::supported(unsigned int encoding)
+bool Decoder::supported(int encoding)
 {
   return encoding <= encodingMax && createFns[encoding];
 }
 
-Decoder* Decoder::createDecoder(unsigned int encoding, CMsgReader* reader)
+Decoder* Decoder::createDecoder(int encoding, CMsgReader* reader)
 {
   if (encoding <= encodingMax && createFns[encoding])
     return (*createFns[encoding])(reader);
   return 0;
 }
 
-void Decoder::registerDecoder(unsigned int encoding,
+void Decoder::registerDecoder(int encoding,
                               DecoderCreateFnType createFn)
 {
   if (encoding > encodingMax)