Deleted Added
full compact
util.c (122451) util.c (128079)
1/*
2 * util.c
3 *
4 * Copyright (c) 2001 Maksim Yevmenkin <m_evmenkin@yahoo.com>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 12 unchanged lines hidden (view full) ---

21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $Id: util.c,v 1.2 2003/05/19 17:29:29 max Exp $
1/*
2 * util.c
3 *
4 * Copyright (c) 2001 Maksim Yevmenkin <m_evmenkin@yahoo.com>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 12 unchanged lines hidden (view full) ---

21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $Id: util.c,v 1.2 2003/05/19 17:29:29 max Exp $
29 * $FreeBSD: head/usr.sbin/bluetooth/hccontrol/util.c 122451 2003-11-11 02:43:10Z emax $
29 * $FreeBSD: head/usr.sbin/bluetooth/hccontrol/util.c 128079 2004-04-09 23:58:53Z emax $
30 */
31
32#include <sys/param.h>
33#include <bluetooth.h>
34#include <stdio.h>
35#include <string.h>
36
37#define SIZE(x) (sizeof((x))/sizeof((x)[0]))

--- 170 unchanged lines hidden (view full) ---

208 /* 0046 */ "Norwood Systems",
209 /* 0047 */ "MewTel Technology Inc."
210 };
211
212 return (m >= SIZE(t)? "?" : t[m]);
213} /* hci_manufacturer2str */
214
215char const * const
30 */
31
32#include <sys/param.h>
33#include <bluetooth.h>
34#include <stdio.h>
35#include <string.h>
36
37#define SIZE(x) (sizeof((x))/sizeof((x)[0]))

--- 170 unchanged lines hidden (view full) ---

208 /* 0046 */ "Norwood Systems",
209 /* 0047 */ "MewTel Technology Inc."
210 };
211
212 return (m >= SIZE(t)? "?" : t[m]);
213} /* hci_manufacturer2str */
214
215char const * const
216hci_features2str(u_int8_t *features, char *buffer, int size)
216hci_features2str(uint8_t *features, char *buffer, int size)
217{
218 static char const * const t[][8] = {
219 { /* byte 0 */
220 /* 0 */ "<3-Slot> ",
221 /* 1 */ "<5-Slot> ",
222 /* 2 */ "<Encryption> ",
223 /* 3 */ "<Slot offset> ",
224 /* 4 */ "<Timing accuracy> ",

--- 154 unchanged lines hidden ---
217{
218 static char const * const t[][8] = {
219 { /* byte 0 */
220 /* 0 */ "<3-Slot> ",
221 /* 1 */ "<5-Slot> ",
222 /* 2 */ "<Encryption> ",
223 /* 3 */ "<Slot offset> ",
224 /* 4 */ "<Timing accuracy> ",

--- 154 unchanged lines hidden ---