Module Name: src Committed By: jmcneill Date: Sun May 15 18:27:35 UTC 2022
Modified Files: src/usr.sbin/sysinst: disks.c Log Message: Use non-deprecated proplib interfaces. prop_dictionary_set_cstring_nocopy -> prop_dictionary_set_string_nocopy To generate a diff of this commit: cvs rdiff -u -r1.78 -r1.79 src/usr.sbin/sysinst/disks.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/sysinst/disks.c diff -u src/usr.sbin/sysinst/disks.c:1.78 src/usr.sbin/sysinst/disks.c:1.79 --- src/usr.sbin/sysinst/disks.c:1.78 Sun May 15 14:48:37 2022 +++ src/usr.sbin/sysinst/disks.c Sun May 15 18:27:35 2022 @@ -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 @@ get_descr_drvctl(struct disk_desc *dd) 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);