Module Name:    src
Committed By:   plunky
Date:           Thu Dec 16 08:44:23 UTC 2010

Modified Files:
        src/lib/libbluetooth: sdp_data.3

Log Message:
remove unnecessary step in example code
(sdp_service_attribute() did that already)
while here, start new paragraph for next example


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libbluetooth/sdp_data.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libbluetooth/sdp_data.3
diff -u src/lib/libbluetooth/sdp_data.3:1.3 src/lib/libbluetooth/sdp_data.3:1.4
--- src/lib/libbluetooth/sdp_data.3:1.3	Thu May 21 09:23:50 2009
+++ src/lib/libbluetooth/sdp_data.3	Thu Dec 16 08:44:23 2010
@@ -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.

Reply via email to