Module Name: src
Committed By: plunky
Date: Sat Sep 17 08:23:37 UTC 2011
Modified Files:
src/sys/netbt: hci.h hci_unit.c
Log Message:
const lookup argument
To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/netbt/hci.h
cvs rdiff -u -r1.12 -r1.13 src/sys/netbt/hci_unit.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/netbt/hci.h
diff -u src/sys/netbt/hci.h:1.34 src/sys/netbt/hci.h:1.35
--- src/sys/netbt/hci.h:1.34 Mon Nov 22 19:56:51 2010
+++ src/sys/netbt/hci.h Sat Sep 17 08:23:36 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: hci.h,v 1.34 2010/11/22 19:56:51 plunky Exp $ */
+/* $NetBSD: hci.h,v 1.35 2011/09/17 08:23:36 plunky Exp $ */
/*-
* Copyright (c) 2005 Iain Hibbert.
@@ -54,7 +54,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: hci.h,v 1.34 2010/11/22 19:56:51 plunky Exp $
+ * $Id: hci.h,v 1.35 2011/09/17 08:23:36 plunky Exp $
* $FreeBSD: src/sys/netgraph/bluetooth/include/ng_hci.h,v 1.6 2005/01/07 01:45:43 imp Exp $
*/
@@ -2576,7 +2576,7 @@
void hci_detach(struct hci_unit *);
int hci_enable(struct hci_unit *);
void hci_disable(struct hci_unit *);
-struct hci_unit *hci_unit_lookup(bdaddr_t *);
+struct hci_unit *hci_unit_lookup(const bdaddr_t *);
int hci_send_cmd(struct hci_unit *, uint16_t, void *, uint8_t);
void hci_num_cmds(struct hci_unit *, uint8_t);
bool hci_input_event(struct hci_unit *, struct mbuf *);
Index: src/sys/netbt/hci_unit.c
diff -u src/sys/netbt/hci_unit.c:1.12 src/sys/netbt/hci_unit.c:1.13
--- src/sys/netbt/hci_unit.c:1.12 Thu Jun 26 14:17:27 2008
+++ src/sys/netbt/hci_unit.c Sat Sep 17 08:23:37 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: hci_unit.c,v 1.12 2008/06/26 14:17:27 plunky Exp $ */
+/* $NetBSD: hci_unit.c,v 1.13 2011/09/17 08:23:37 plunky Exp $ */
/*-
* Copyright (c) 2005 Iain Hibbert.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hci_unit.c,v 1.12 2008/06/26 14:17:27 plunky Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hci_unit.c,v 1.13 2011/09/17 08:23:37 plunky Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -266,7 +266,7 @@
}
struct hci_unit *
-hci_unit_lookup(bdaddr_t *addr)
+hci_unit_lookup(const bdaddr_t *addr)
{
struct hci_unit *unit;