From ed4d8d47a0a08854440103034cfb008a4e2d412f Mon Sep 17 00:00:00 2001 From: plunky Date: Mon, 11 Sep 2006 18:30:27 +0000 Subject: also include service name in dictionary being sent to kernel. (this is not used just yet, but it might be in the future and it will be easier if we dont have to provide code to handle its absence) --- usr.sbin/btdevctl/btdevctl.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'usr.sbin/btdevctl/btdevctl.c') diff --git a/usr.sbin/btdevctl/btdevctl.c b/usr.sbin/btdevctl/btdevctl.c index a6c72590c88..d6a6ccd7557 100644 --- a/usr.sbin/btdevctl/btdevctl.c +++ b/usr.sbin/btdevctl/btdevctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: btdevctl.c,v 1.2 2006/09/10 15:45:56 plunky Exp $ */ +/* $NetBSD: btdevctl.c,v 1.3 2006/09/11 18:30:27 plunky Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -34,7 +34,7 @@ #include __COPYRIGHT("@(#) Copyright (c) 2006 Itronix, Inc.\n" "All rights reserved.\n"); -__RCSID("$NetBSD: btdevctl.c,v 1.2 2006/09/10 15:45:56 plunky Exp $"); +__RCSID("$NetBSD: btdevctl.c,v 1.3 2006/09/11 18:30:27 plunky Exp $"); #include #include @@ -161,6 +161,13 @@ main(int argc, char *argv[]) prop_object_release(obj); + /* add service name */ + obj = prop_string_create_cstring(service); + if (obj == NULL || !prop_dictionary_set(dev, BTDEVservice, obj)) + errx(EXIT_FAILURE, "proplib failure (%s)", BTDEVservice); + + prop_object_release(obj); + if (verbose == TRUE) cfg_print(dev); -- cgit