Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sysinst Use non-deprecated proplib interfaces.



details:   https://anonhg.NetBSD.org/src/rev/09fbe11ab6a1
branches:  trunk
changeset: 366138:09fbe11ab6a1
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun May 15 18:27:35 2022 +0000

description:
Use non-deprecated proplib interfaces.

prop_dictionary_set_cstring_nocopy -> prop_dictionary_set_string_nocopy

diffstat:

 usr.sbin/sysinst/disks.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r cfa3308dd6aa -r 09fbe11ab6a1 usr.sbin/sysinst/disks.c
--- a/usr.sbin/sysinst/disks.c  Sun May 15 17:42:32 2022 +0000
+++ b/usr.sbin/sysinst/disks.c  Sun May 15 18:27:35 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disks.c,v 1.78 2022/05/15 14:48:37 jmcneill Exp $ */
+/*     $NetBSD: disks.c,v 1.79 2022/05/15 18:27:35 jmcneill Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -343,9 +343,9 @@
        command_dict = prop_dictionary_create();
        args_dict = prop_dictionary_create();
 
-       prop_dictionary_set_cstring_nocopy(command_dict, "drvctl-command",
+       prop_dictionary_set_string_nocopy(command_dict, "drvctl-command",
            "get-properties");
-       prop_dictionary_set_cstring_nocopy(args_dict, "device-name",
+       prop_dictionary_set_string_nocopy(args_dict, "device-name",
            dd->dd_name);
        prop_dictionary_set(command_dict, "drvctl-arguments", args_dict);
        prop_object_release(args_dict);



Home | Main Index | Thread Index | Old Index