Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libbluetooth inc pointer, so we store the value in the c...
details: https://anonhg.NetBSD.org/src/rev/b947d647c68b
branches: trunk
changeset: 763855:b947d647c68b
user: plunky <plunky%NetBSD.org@localhost>
date: Tue Apr 05 18:58:43 2011 +0000
description:
inc pointer, so we store the value in the correct place
diffstat:
lib/libbluetooth/sdp_set.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 46237dda9a6f -r b947d647c68b lib/libbluetooth/sdp_set.c
--- a/lib/libbluetooth/sdp_set.c Tue Apr 05 18:19:04 2011 +0000
+++ b/lib/libbluetooth/sdp_set.c Tue Apr 05 18:58:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdp_set.c,v 1.3 2011/04/05 18:19:04 plunky Exp $ */
+/* $NetBSD: sdp_set.c,v 1.4 2011/04/05 18:58:43 plunky Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: sdp_set.c,v 1.3 2011/04/05 18:19:04 plunky Exp $");
+__RCSID("$NetBSD: sdp_set.c,v 1.4 2011/04/05 18:58:43 plunky Exp $");
#include <bluetooth.h>
#include <limits.h>
@@ -48,7 +48,7 @@
uint8_t *p = data->next;
if (p + 2 > data->end
- || *p != SDP_DATA_BOOL)
+ || *p++ != SDP_DATA_BOOL)
return false;
*p = (value ? 0x01 : 0x00);
Home |
Main Index |
Thread Index |
Old Index