diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-03-12 16:15:06 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-03-12 16:15:06 -0300 |
commit | 7c27b3e218470ba0bc2beaad39635f7b3548e53a (patch) | |
tree | 392d8bced2ac86de3da8a6648aa4fc543d8ec7c8 /src | |
parent | 88b59d5500d626ce382b2edd8892d4b62ad40177 (diff) |
Make use of size_t and ssize_t when possible
Diffstat (limited to 'src')
-rw-r--r-- | src/sdpd-request.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sdpd-request.c b/src/sdpd-request.c index c7195eaf..ed51c4fe 100644 --- a/src/sdpd-request.c +++ b/src/sdpd-request.c @@ -104,7 +104,7 @@ static int extract_des(uint8_t *buf, int len, sdp_list_t **svcReqSeq, uint8_t *p uint8_t dataType = expectedType; int status = 0; const uint8_t *p; - int bufsize; + size_t bufsize; scanned = sdp_extract_seqtype(buf, len, &seqType, &data_size); @@ -122,7 +122,7 @@ static int extract_des(uint8_t *buf, int len, sdp_list_t **svcReqSeq, uint8_t *p char *pElem = NULL; int localSeqLength = 0; - if (bufsize < (int) sizeof(uint8_t)) { + if (bufsize < sizeof(uint8_t)) { SDPDBG("->Unexpected end of buffer"); goto failed; } @@ -149,7 +149,7 @@ static int extract_des(uint8_t *buf, int len, sdp_list_t **svcReqSeq, uint8_t *p p += sizeof(uint8_t); seqlen += sizeof(uint8_t); bufsize -= sizeof(uint8_t); - if (bufsize < (int) sizeof(uint16_t)) { + if (bufsize < sizeof(uint16_t)) { SDPDBG("->Unexpected end of buffer"); goto failed; } |