diff options
| author | plunky <plunky@NetBSD.org> | 2006-09-11 18:30:27 +0000 |
|---|---|---|
| committer | plunky <plunky@NetBSD.org> | 2006-09-11 18:30:27 +0000 |
| commit | ed4d8d47a0a08854440103034cfb008a4e2d412f (patch) | |
| tree | 20bba52109d570554a41c6fa2787970cc400990b /usr.sbin/btdevctl | |
| parent | 5411355304ea12bbec8beca3f7850d83afeba1dd (diff) | |
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)
Diffstat (limited to 'usr.sbin/btdevctl')
| -rw-r--r-- | usr.sbin/btdevctl/btdevctl.c | 11 |
1 files changed, 9 insertions, 2 deletions
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 <sys/cdefs.h> __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 <prop/proplib.h> #include <sys/ioctl.h> @@ -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); |
