aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2011-07-13 15:40:13 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2011-07-14 17:21:41 +0300
commit564197f21ac0a5fffd84d01bc752c50fc2d735f1 (patch)
tree91e1f0e4e1f09b28cbfc18377e9d54a624e67023 /src/storage.h
parent3dfad1a62c3e3b0557f0f83503bf720532c0dca6 (diff)
downloadbluez-564197f21ac0a5fffd84d01bc752c50fc2d735f1.tar.gz
bluez-564197f21ac0a5fffd84d01bc752c50fc2d735f1.tar.xz
bluez-564197f21ac0a5fffd84d01bc752c50fc2d735f1.zip
Fix read_pin_code to return ssize_t
read_pin_code returns the length of a memory block and hence should use ssize_t as type.
Diffstat (limited to 'src/storage.h')
-rw-r--r--src/storage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage.h b/src/storage.h
index 6929ada0..bb64727c 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -49,7 +49,7 @@ int write_lastseen_info(bdaddr_t *local, bdaddr_t *peer, struct tm *tm);
int write_lastused_info(bdaddr_t *local, bdaddr_t *peer, struct tm *tm);
int write_link_key(bdaddr_t *local, bdaddr_t *peer, unsigned char *key, uint8_t type, int length);
int read_link_key(bdaddr_t *local, bdaddr_t *peer, unsigned char *key, uint8_t *type);
-int read_pin_code(bdaddr_t *local, bdaddr_t *peer, char *pin);
+ssize_t read_pin_code(bdaddr_t *local, bdaddr_t *peer, char *pin);
gboolean read_trust(const bdaddr_t *local, const char *addr, const char *service);
int write_trust(const char *src, const char *addr, const char *service, gboolean trust);
GSList *list_trusts(bdaddr_t *local, const char *service);