diff options
| author | wiz <wiz@NetBSD.org> | 2017-07-03 21:28:48 +0000 |
|---|---|---|
| committer | wiz <wiz@NetBSD.org> | 2017-07-03 21:28:48 +0000 |
| commit | 56b14ee00121a3a960d2fbe103c85e147ac57103 (patch) | |
| tree | 05478e811140b3d30b452dcff8e4df8bdab6e3f8 /lib/libbluetooth | |
| parent | 7c0084bd3e3114326ae5e7336142439f1d2a10e1 (diff) | |
Remove workaround for ancient HTML generation code.
Diffstat (limited to 'lib/libbluetooth')
| -rw-r--r-- | lib/libbluetooth/bluetooth.3 | 8 | ||||
| -rw-r--r-- | lib/libbluetooth/sdp_data.3 | 24 |
2 files changed, 16 insertions, 16 deletions
diff --git a/lib/libbluetooth/bluetooth.3 b/lib/libbluetooth/bluetooth.3 index e00e0d25adc..86c237c6f6f 100644 --- a/lib/libbluetooth/bluetooth.3 +++ b/lib/libbluetooth/bluetooth.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: bluetooth.3,v 1.8 2015/11/28 07:47:30 plunky Exp $ +.\" $NetBSD: bluetooth.3,v 1.9 2017/07/03 21:32:49 wiz Exp $ .\" .\" Copyright (c) 2003 Maksim Yevmenkin <m_evmenkin@yahoo.com> .\" All rights reserved. @@ -199,14 +199,14 @@ const char *bdstr = "00:01:02:03:04:05"; bdaddr_t bd; struct hostent *hp; -if (!bt_aton(bdstr, \*[Am]bd)) +if (!bt_aton(bdstr, &bd)) errx(1, "can't parse BD_ADDR %s", bdstr); -if ((hp = bt_gethostbyaddr((const char *)\*[Am]bd, +if ((hp = bt_gethostbyaddr((const char *)&bd, sizeof(bd), AF_BLUETOOTH)) == NULL) errx(1, "no name associated with %s", bdstr); -printf("name associated with %s is %s\en", bdstr, hp-\*[Gt]h_name); +printf("name associated with %s is %s\en", bdstr, hp->h_name); .Ed .Sh DIAGNOSTICS Error return status from diff --git a/lib/libbluetooth/sdp_data.3 b/lib/libbluetooth/sdp_data.3 index 6f731fba383..383a307c118 100644 --- a/lib/libbluetooth/sdp_data.3 +++ b/lib/libbluetooth/sdp_data.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: sdp_data.3,v 1.9 2015/03/31 09:26:45 plunky Exp $ +.\" $NetBSD: sdp_data.3,v 1.10 2017/07/03 21:32:49 wiz Exp $ .\" .\" Copyright (c) 2009 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -313,16 +313,16 @@ examining various attribute values: /* rsp contains remote response */ - while (sdp_get_attr(\*[Am]rsp, \*[Am]attr, \*[Am]val)) { + while (sdp_get_attr(&rsp, &attr, &val)) { switch(attr) { case SDP_ATTR_SERVICE_RECORD_HANDLE: - sdp_get_uint(\*[Am]val, \*[Am]handle); + sdp_get_uint(&val, &handle); printf("ServiceRecordHandle: 0x%08x\\n", handle); break; case SDP_ATTR_PROFILE_DESCRIPTOR_LIST: printf("ProfileDescriptorList:\\n"); - sdp_data_print(\*[Am]val, 0); + sdp_data_print(&val, 0); break; default: @@ -343,19 +343,19 @@ of known and unknown length. seq.next = buf; seq.end = buf + sizeof(buf); - sdp_put_seq(\*[Am]seq, -1); + sdp_put_seq(&seq, -1); - sdp_put_seq(\*[Am]seq, 6); - sdp_put_uuid16(\*[Am]seq, SDP_UUID_PROTOCOL_L2CAP); - sdp_put_uint16(\*[Am]seq, psm); + sdp_put_seq(&seq, 6); + sdp_put_uuid16(&seq, SDP_UUID_PROTOCOL_L2CAP); + sdp_put_uint16(&seq, psm); - sdp_put_seq(\*[Am]seq, 5); - sdp_put_uuid16(\*[Am]seq, SDP_UUID_PROTOCOL_RFCOMM); - sdp_put_uint8(\*[Am]seq, channel); + sdp_put_seq(&seq, 5); + sdp_put_uuid16(&seq, SDP_UUID_PROTOCOL_RFCOMM); + sdp_put_uint8(&seq, channel); seq.end = seq.next; seq.next = buf; - sdp_set_seq(\*[Am]seq, -1); + sdp_set_seq(&seq, -1); .Ed .Pp Note that although |
