aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSyam Sidhardhan <s.syam@samsung.com>2012-04-16 18:31:36 +0530
committerJohan Hedberg <johan.hedberg@intel.com>2012-04-16 22:55:29 +0300
commit4b6c1b7311f4964a956ef809ffb94262c69613c4 (patch)
tree26279647c3f71fa2b18de10109e70ff379856c66
parent8a3f7786584513e32c5dc3921fe5b89b0b5add17 (diff)
downloadbluez-4b6c1b7311f4964a956ef809ffb94262c69613c4.tar.gz
bluez-4b6c1b7311f4964a956ef809ffb94262c69613c4.tar.xz
bluez-4b6c1b7311f4964a956ef809ffb94262c69613c4.zip
sdp: Fix compilation warning due to data type mismatch
In certain cross compiling environment, if we build the code with enabling the maintainer mode, the following error happens. cc1: warnings being treated as errors lib/sdp.c: In function 'sdp_process': lib/sdp.c:4111:6: error: comparison between signed and unsigned integer expressions make[2]: *** [lib/sdp.lo] Error 1 make[1]: *** [all] Error 2
-rw-r--r--lib/sdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sdp.c b/lib/sdp.c
index eaf8d00c..81e328e8 100644
--- a/lib/sdp.c
+++ b/lib/sdp.c
@@ -4108,7 +4108,7 @@ int sdp_process(sdp_session_t *session)
}
if (n == 0 || reqhdr->tid != rsphdr->tid ||
- (n != (ntohs(rsphdr->plen) + (int) sizeof(sdp_pdu_hdr_t)))) {
+ (n != (int) (ntohs(rsphdr->plen) + sizeof(sdp_pdu_hdr_t)))) {
t->err = EPROTO;
SDPERR("Protocol error.");
goto end;