diff options
| author | Maksim Yevmenkin <emax@FreeBSD.org> | 2004-04-09 23:58:53 +0000 |
|---|---|---|
| committer | Maksim Yevmenkin <emax@FreeBSD.org> | 2004-04-09 23:58:53 +0000 |
| commit | 079a8a3e69a1b29b22fcb7d1c200a9fe44362116 (patch) | |
| tree | fbab8941576e06ad6a4b5170cdafecdb37babc6e /usr.sbin/bluetooth/hcsecd | |
| parent | 2f122b6e8a568025fc6ff4db47814c0cb56f8822 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/bluetooth/hcsecd')
| -rw-r--r-- | usr.sbin/bluetooth/hcsecd/hcsecd.c | 10 | ||||
| -rw-r--r-- | usr.sbin/bluetooth/hcsecd/hcsecd.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/bluetooth/hcsecd/hcsecd.c b/usr.sbin/bluetooth/hcsecd/hcsecd.c index ac7eacb56e3f..a1b72a3b34ae 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 4f53e992019a..acfc8875a011 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 */ }; |
