diff options
author | emax <emax@FreeBSD.org> | 2004-04-09 23:26:16 +0000 |
---|---|---|
committer | emax <emax@FreeBSD.org> | 2004-04-09 23:26:16 +0000 |
commit | 16d558884f1b7517e234363d9fffb2d781c2ef1b (patch) | |
tree | 19dc812c8544858dcc8dd6eba35adf8d15063fc4 /usr.bin/bluetooth | |
parent | 3513d3a4bf451f0df5b032f66e51942fa9a3bde8 (diff) | |
download | FreeBSD-src-16d558884f1b7517e234363d9fffb2d781c2ef1b.zip FreeBSD-src-16d558884f1b7517e234363d9fffb2d781c2ef1b.tar.gz |
Use uint instead of u_int
Diffstat (limited to 'usr.bin/bluetooth')
-rw-r--r-- | usr.bin/bluetooth/rfcomm_sppd/rfcomm_sdp.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sdp.c b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sdp.c index ed6b827..5873071 100644 --- a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sdp.c +++ b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sdp.c @@ -40,7 +40,7 @@ #undef PROTOCOL_DESCRIPTOR_LIST_MINIMAL_SIZE #define PROTOCOL_DESCRIPTOR_LIST_MINIMAL_SIZE 12 -static int rfcomm_proto_list_parse (u_int8_t const *start, u_int8_t const *end, +static int rfcomm_proto_list_parse (uint8_t const *start, uint8_t const *end, int *channel, int *error); /* @@ -62,14 +62,14 @@ int rfcomm_channel_lookup(bdaddr_t const *local, bdaddr_t const *remote, int service, int *channel, int *error) { - u_int8_t buffer[PROTOCOL_DESCRIPTOR_LIST_BUFFER_SIZE]; - void *ss = NULL; - u_int16_t serv = (u_int16_t) service; - u_int32_t attr = SDP_ATTR_RANGE( + uint8_t buffer[PROTOCOL_DESCRIPTOR_LIST_BUFFER_SIZE]; + void *ss = NULL; + uint16_t serv = (uint16_t) service; + uint32_t attr = SDP_ATTR_RANGE( SDP_ATTR_PROTOCOL_DESCRIPTOR_LIST, SDP_ATTR_PROTOCOL_DESCRIPTOR_LIST); - sdp_attr_t proto = { SDP_ATTR_INVALID,0,sizeof(buffer),buffer }; - u_int32_t type, len; + sdp_attr_t proto = { SDP_ATTR_INVALID,0,sizeof(buffer),buffer }; + uint32_t type, len; if (local == NULL) local = NG_HCI_BDADDR_ANY; @@ -172,7 +172,7 @@ rfcomm_channel_lookup(bdaddr_t const *local, bdaddr_t const *remote, } static int -rfcomm_proto_list_parse(u_int8_t const *start, u_int8_t const *end, +rfcomm_proto_list_parse(uint8_t const *start, uint8_t const *end, int *channel, int *error) { int type, len, value; @@ -220,10 +220,10 @@ rfcomm_proto_list_parse(u_int8_t const *start, u_int8_t const *end, rfcomm_proto_list_parse_exit(EINVAL); /* Get protocol UUID */ - SDP_GET8(type, start); len -= sizeof(u_int8_t); + SDP_GET8(type, start); len -= sizeof(uint8_t); switch (type) { case SDP_DATA_UUID16: - SDP_GET16(value, start); len -= sizeof(u_int16_t); + SDP_GET16(value, start); len -= sizeof(uint16_t); if (value != SDP_UUID_PROTOCOL_RFCOMM) goto next_protocol; break; |