From 726a7fca00cb86d9a23466b7bc446be882f51b06 Mon Sep 17 00:00:00 2001 From: emax Date: Tue, 10 Aug 2004 00:38:50 +0000 Subject: Introduce ng_hci_inquiry_response structure and use it in the hccontrol(8) --- usr.sbin/bluetooth/hccontrol/link_control.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'usr.sbin/bluetooth/hccontrol') diff --git a/usr.sbin/bluetooth/hccontrol/link_control.c b/usr.sbin/bluetooth/hccontrol/link_control.c index b90ce00..7d01f04 100644 --- a/usr.sbin/bluetooth/hccontrol/link_control.c +++ b/usr.sbin/bluetooth/hccontrol/link_control.c @@ -146,14 +146,7 @@ wait_for_more: static void hci_inquiry_response(int n, uint8_t **b) { - struct inquiry_response { - bdaddr_t bdaddr; - uint8_t page_scan_rep_mode; - uint8_t page_scan_period_mode; - uint8_t page_scan_mode; - uint8_t class[NG_HCI_CLASS_SIZE]; - uint16_t clock_offset; - } *ir = (struct inquiry_response *)(*b); + ng_hci_inquiry_response *ir = (ng_hci_inquiry_response *)(*b); fprintf(stdout, "Inquiry result #%d\n", n); fprintf(stdout, "\tBD_ADDR: %s\n", hci_bdaddr2str(&ir->bdaddr)); -- cgit v1.1