Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/dev proplib API catchup



details:   https://anonhg.NetBSD.org/src/rev/8dbaa0a5c669
branches:  trunk
changeset: 935413:8dbaa0a5c669
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Jul 02 12:45:27 2020 +0000

description:
proplib API catchup

diffstat:

 sys/arch/macppc/dev/smuiic.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 5623b87a7f0f -r 8dbaa0a5c669 sys/arch/macppc/dev/smuiic.c
--- a/sys/arch/macppc/dev/smuiic.c      Thu Jul 02 12:37:18 2020 +0000
+++ b/sys/arch/macppc/dev/smuiic.c      Thu Jul 02 12:45:27 2020 +0000
@@ -100,8 +100,8 @@
                        goto skip;
                addr = (addr & 0xff) >> 1;
                dev = prop_dictionary_create();
-               prop_dictionary_set_cstring(dev, "name", name);
-               data = prop_data_create_data(compat, strlen(compat)+1);
+               prop_dictionary_set_string(dev, "name", name);
+               data = prop_data_create_copy(compat, strlen(compat)+1);
                prop_dictionary_set(dev, "compatible", data);
                prop_object_release(data);
                prop_dictionary_set_uint32(dev, "addr", addr);



Home | Main Index | Thread Index | Old Index