summaryrefslogtreecommitdiff
path: root/attrib/gatttool.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-08-15 12:20:51 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-08-15 12:20:51 +0300
commit04be4fe0c0126f8816d55a7d3a8ff9e6dd27f73f (patch)
tree453cd117ce8c7ed4f94c8f88141a47addf15bd9b /attrib/gatttool.c
parent7040dc92fc1d4fbb1eb05a520e1f2b9853ed48b0 (diff)
downloadbluez-04be4fe0c0126f8816d55a7d3a8ff9e6dd27f73f.tar.gz
attrib: Use proper types for size variables
size_t/ssize_t/off_t/etc are more appropriate for variables denoting some kind of size than simply using int. This patch includes a couple of other related changes to avoid gcc signedness errors resulting from it treating (for whatever reason) const variables and integer literals as signed.
Diffstat (limited to 'attrib/gatttool.c')
-rw-r--r--attrib/gatttool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/attrib/gatttool.c b/attrib/gatttool.c
index a11ca9fca..416bb7118 100644
--- a/attrib/gatttool.c
+++ b/attrib/gatttool.c
@@ -77,7 +77,7 @@ static void events_handler(const uint8_t *pdu, uint16_t len, gpointer user_data)
GAttrib *attrib = user_data;
uint8_t *opdu;
uint16_t handle, i, olen = 0;
- int plen;
+ size_t plen;
handle = att_get_u16(&pdu[1]);