Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libbluetooth remove unnecessary step in example code
details: https://anonhg.NetBSD.org/src/rev/c8f7f9953923
branches: trunk
changeset: 759759:c8f7f9953923
user: plunky <plunky%NetBSD.org@localhost>
date: Thu Dec 16 08:44:23 2010 +0000
description:
remove unnecessary step in example code
(sdp_service_attribute() did that already)
while here, start new paragraph for next example
diffstat:
lib/libbluetooth/sdp_data.3 | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (30 lines):
diff -r 778e677dd070 -r c8f7f9953923 lib/libbluetooth/sdp_data.3
--- a/lib/libbluetooth/sdp_data.3 Thu Dec 16 08:43:01 2010 +0000
+++ b/lib/libbluetooth/sdp_data.3 Thu Dec 16 08:44:23 2010 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: sdp_data.3,v 1.3 2009/05/21 09:23:50 wiz Exp $
+.\" $NetBSD: sdp_data.3,v 1.4 2010/12/16 08:44:23 plunky Exp $
.\"
.\" Copyright (c) 2009 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -309,10 +309,6 @@
/* rsp contains remote response */
- /* discard sequence header */
- if (!sdp_get_seq(\*[Am]rsp, \*[Am]rsp))
- err(EXIT_FAILURE, "response is not a sequence");
-
while (sdp_get_attr(\*[Am]rsp, \*[Am]attr, \*[Am]val)) {
switch(attr) {
case SDP_ATTR_SERVICE_RECORD_HANDLE:
@@ -330,8 +326,8 @@
break;
}
}
-
.Ed
+.Pp
The following code creates a ProtocolDataList attribute value for a service
using the L2CAP and RFCOMM protocols and illustrates how to construct sequences
of known and unknown length.
Home |
Main Index |
Thread Index |
Old Index