X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgldecoder.c;h=f61e327aa92a9217a589ebb8f7174680f8125a7c;hb=03c86c2f632b642aa94f721e326787e91aa69c25;hp=863be925aeaaf55eee6961c9114ddaae7e0e3ebf;hpb=3c32a221de1435ae7af8d96182560e8b28f1a4c0;p=gldbg.git diff --git a/source/gldecoder.c b/source/gldecoder.c index 863be92..f61e327 100644 --- a/source/gldecoder.c +++ b/source/gldecoder.c @@ -9,6 +9,7 @@ Distributed under the GPL #include #include "functions.h" #include "gldecoder.h" +#include "tmpalloc.h" static unsigned read_short(short *, const char *); static unsigned read_int(int *, const char *); @@ -37,16 +38,16 @@ void gldecoder_delete(GlDecoder *dec) int gldecoder_decode(GlDecoder *dec, const char *data, unsigned len) { unsigned pos = 0; - int pktlen; + unsigned pktlen; unsigned short func; int ret; if(lengldError) dec->gldError(dec->user_data, code); return pos;