diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-08-15 12:20:51 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-08-15 12:20:51 +0300 |
commit | 04be4fe0c0126f8816d55a7d3a8ff9e6dd27f73f (patch) | |
tree | 453cd117ce8c7ed4f94c8f88141a47addf15bd9b /attrib/gatt.h | |
parent | 7040dc92fc1d4fbb1eb05a520e1f2b9853ed48b0 (diff) | |
download | bluez-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/gatt.h')
-rw-r--r-- | attrib/gatt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/attrib/gatt.h b/attrib/gatt.h index aab93b625..7690fba7e 100644 --- a/attrib/gatt.h +++ b/attrib/gatt.h @@ -78,7 +78,8 @@ guint gatt_read_char(GAttrib *attrib, uint16_t handle, uint16_t offset, GAttribResultFunc func, gpointer user_data); guint gatt_write_char(GAttrib *attrib, uint16_t handle, uint8_t *value, - int vlen, GAttribResultFunc func, gpointer user_data); + size_t vlen, GAttribResultFunc func, + gpointer user_data); guint gatt_find_info(GAttrib *attrib, uint16_t start, uint16_t end, GAttribResultFunc func, gpointer user_data); |