Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbppc/mpc85xx Stop using deprecated problib functi...



details:   https://anonhg.NetBSD.org/src/rev/b173b4de2ad8
branches:  trunk
changeset: 368626:b173b4de2ad8
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jul 22 20:05:55 2022 +0000

description:
Stop using deprecated problib functions.

diffstat:

 sys/arch/evbppc/mpc85xx/machdep.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (53 lines):

diff -r a96dc3e2e915 -r b173b4de2ad8 sys/arch/evbppc/mpc85xx/machdep.c
--- a/sys/arch/evbppc/mpc85xx/machdep.c Fri Jul 22 20:04:53 2022 +0000
+++ b/sys/arch/evbppc/mpc85xx/machdep.c Fri Jul 22 20:05:55 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.47 2022/07/22 20:04:53 thorpej Exp $     */
+/*     $NetBSD: machdep.c,v 1.48 2022/07/22 20:05:55 thorpej Exp $     */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.47 2022/07/22 20:04:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.48 2022/07/22 20:05:55 thorpej Exp $");
 
 #include "opt_altivec.h"
 #include "opt_ddb.h"
@@ -1352,7 +1352,7 @@
 #endif
        prop_array_t extirqs = prop_array_create_with_capacity(n);
        for (u_int i = 0; i < n; i++) {
-               prop_string_t ps = prop_string_create_cstring_nocopy(names[i]);
+               prop_string_t ps = prop_string_create_nocopy(names[i]);
                prop_array_set(extirqs, i, ps);
                prop_object_release(ps);
        }
@@ -1365,13 +1365,13 @@
 {
        prop_dictionary_t pci_intmap = prop_dictionary_create();
        KASSERT(pci_intmap != NULL);
-       prop_number_t mask = prop_number_create_unsigned_integer(intmask);
+       prop_number_t mask = prop_number_create_unsigned(intmask);
        KASSERT(mask != NULL);
        prop_dictionary_set(pci_intmap, "interrupt-mask", mask);
        prop_object_release(mask);
-       prop_number_t pn_ist = prop_number_create_unsigned_integer(ist);
+       prop_number_t pn_ist = prop_number_create_unsigned(ist);
        KASSERT(pn_ist != NULL);
-       prop_number_t pn_intr = prop_number_create_unsigned_integer(inta);
+       prop_number_t pn_intr = prop_number_create_unsigned(inta);
        KASSERT(pn_intr != NULL);
        prop_dictionary_t entry = prop_dictionary_create();
        KASSERT(entry != NULL);
@@ -1388,7 +1388,7 @@
                snprintf(prop_name, sizeof(prop_name), "%06x", i + intrinc);
                entry = prop_dictionary_create();
                KASSERT(entry != NULL);
-               pn_intr = prop_number_create_unsigned_integer(va_arg(ap, u_int));
+               pn_intr = prop_number_create_unsigned(va_arg(ap, u_int));
                KASSERT(pn_intr != NULL);
                prop_dictionary_set(entry, "interrupt", pn_intr);
                prop_dictionary_set(entry, "type", pn_ist);



Home | Main Index | Thread Index | Old Index