summaryrefslogtreecommitdiff
path: root/src/attrib-server.h
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 /src/attrib-server.h
parent7040dc92fc1d4fbb1eb05a520e1f2b9853ed48b0 (diff)
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 'src/attrib-server.h')
-rw-r--r--src/attrib-server.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/attrib-server.h b/src/attrib-server.h
index 7af0cfaa..3ec62ed1 100644
--- a/src/attrib-server.h
+++ b/src/attrib-server.h
@@ -25,14 +25,15 @@
uint16_t attrib_db_find_avail(struct btd_adapter *adapter, bt_uuid_t *svc_uuid,
uint16_t nitems);
struct attribute *attrib_db_add(struct btd_adapter *adapter, uint16_t handle,
- bt_uuid_t *uuid, int read_reqs, int write_reqs,
- const uint8_t *value, int len);
+ bt_uuid_t *uuid, size_t read_reqs,
+ size_t write_reqs, const uint8_t *value,
+ size_t len);
int attrib_db_update(struct btd_adapter *adapter, uint16_t handle,
bt_uuid_t *uuid, const uint8_t *value,
- int len, struct attribute **attr);
+ size_t len, struct attribute **attr);
int attrib_db_del(struct btd_adapter *adapter, uint16_t handle);
int attrib_gap_set(struct btd_adapter *adapter, uint16_t uuid,
- const uint8_t *value, int len);
+ const uint8_t *value, size_t len);
uint32_t attrib_create_sdp(struct btd_adapter *adapter, uint16_t handle,
const char *name);
void attrib_free_sdp(uint32_t sdp_handle);