summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bluetooth/hcsecd
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2004-04-09 23:58:53 +0000
committeremax <emax@FreeBSD.org>2004-04-09 23:58:53 +0000
commit96b75c2267d1d5caf4783f60f78743070ccfa0c8 (patch)
treefbab8941576e06ad6a4b5170cdafecdb37babc6e /usr.sbin/bluetooth/hcsecd
parent16d558884f1b7517e234363d9fffb2d781c2ef1b (diff)
downloadFreeBSD-src-96b75c2267d1d5caf4783f60f78743070ccfa0c8.zip
FreeBSD-src-96b75c2267d1d5caf4783f60f78743070ccfa0c8.tar.gz
Use uint instead of u_int
Diffstat (limited to 'usr.sbin/bluetooth/hcsecd')
-rw-r--r--usr.sbin/bluetooth/hcsecd/hcsecd.c10
-rw-r--r--usr.sbin/bluetooth/hcsecd/hcsecd.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/bluetooth/hcsecd/hcsecd.c b/usr.sbin/bluetooth/hcsecd/hcsecd.c
index ac7eacb..a1b72a3 100644
--- a/usr.sbin/bluetooth/hcsecd/hcsecd.c
+++ b/usr.sbin/bluetooth/hcsecd/hcsecd.c
@@ -51,7 +51,7 @@ static int process_link_key_request_event
static int send_pin_code_reply
(int sock, struct sockaddr_hci *addr, bdaddr_p bdaddr, char const *pin);
static int send_link_key_reply
- (int sock, struct sockaddr_hci *addr, bdaddr_p bdaddr, u_int8_t *key);
+ (int sock, struct sockaddr_hci *addr, bdaddr_p bdaddr, uint8_t *key);
static int process_link_key_notification_event
(int sock, struct sockaddr_hci *addr, ng_hci_link_key_notification_ep *ep);
static void sighup
@@ -264,7 +264,7 @@ static int
send_pin_code_reply(int sock, struct sockaddr_hci *addr,
bdaddr_p bdaddr, char const *pin)
{
- u_int8_t buffer[HCSECD_BUFFER_SIZE];
+ uint8_t buffer[HCSECD_BUFFER_SIZE];
ng_hci_cmd_pkt_t *cmd = NULL;
memset(buffer, 0, sizeof(buffer));
@@ -321,9 +321,9 @@ again:
/* Send Link_Key_[Negative]_Reply */
static int
send_link_key_reply(int sock, struct sockaddr_hci *addr,
- bdaddr_p bdaddr, u_int8_t *key)
+ bdaddr_p bdaddr, uint8_t *key)
{
- u_int8_t buffer[HCSECD_BUFFER_SIZE];
+ uint8_t buffer[HCSECD_BUFFER_SIZE];
ng_hci_cmd_pkt_t *cmd = NULL;
memset(buffer, 0, sizeof(buffer));
@@ -400,7 +400,7 @@ process_link_key_notification_event(int sock, struct sockaddr_hci *addr,
(key->key != NULL)? "exists" : "doesn't exist");
if (key->key == NULL) {
- key->key = (u_int8_t *) malloc(NG_HCI_KEY_SIZE);
+ key->key = (uint8_t *) malloc(NG_HCI_KEY_SIZE);
if (key->key == NULL) {
syslog(LOG_ERR, "Could not allocate link key");
exit(1);
diff --git a/usr.sbin/bluetooth/hcsecd/hcsecd.h b/usr.sbin/bluetooth/hcsecd/hcsecd.h
index 4f53e99..acfc887 100644
--- a/usr.sbin/bluetooth/hcsecd/hcsecd.h
+++ b/usr.sbin/bluetooth/hcsecd/hcsecd.h
@@ -41,7 +41,7 @@ struct link_key
{
bdaddr_t bdaddr; /* remote device BDADDR */
char *name; /* remote device name */
- u_int8_t *key; /* link key (or NULL if no key) */
+ uint8_t *key; /* link key (or NULL if no key) */
char *pin; /* pin (or NULL if no pin) */
LIST_ENTRY(link_key) next; /* link to the next */
};
OpenPOWER on IntegriCloud