summaryrefslogtreecommitdiffstats
path: root/common/rfb/Encoder.h
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2010-02-10 07:43:02 +0000
committerPeter Åstrand <astrand@cendio.se>2010-02-10 07:43:02 +0000
commit98fe98c68939fee9bdf492e813a50f239674b733 (patch)
tree99935d1420b497c483a98ca193759b7d31fdeffd /common/rfb/Encoder.h
parent618c1707a4d29e1d6efda633fadaaf81d1f80062 (diff)
downloadtigervnc-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 'common/rfb/Encoder.h')
-rw-r--r--common/rfb/Encoder.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/rfb/Encoder.h b/common/rfb/Encoder.h
index df50dd6d..2a6e2f6b 100644
--- a/common/rfb/Encoder.h
+++ b/common/rfb/Encoder.h
@@ -40,11 +40,11 @@ namespace rfb {
// rectangle which was updated.
virtual bool writeRect(const Rect& r, ImageGetter* ig, Rect* actual)=0;
- static bool supported(unsigned int encoding);
- static Encoder* createEncoder(unsigned int encoding, SMsgWriter* writer);
- static void registerEncoder(unsigned int encoding,
+ static bool supported(int encoding);
+ static Encoder* createEncoder(int encoding, SMsgWriter* writer);
+ static void registerEncoder(int encoding,
EncoderCreateFnType createFn);
- static void unregisterEncoder(unsigned int encoding);
+ static void unregisterEncoder(int encoding);
private:
static EncoderCreateFnType createFns[encodingMax+1];
};