Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Oops, missed a couple.



details:   https://anonhg.NetBSD.org/src/rev/9ed73949252d
branches:  trunk
changeset: 934388:9ed73949252d
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jun 11 02:30:21 2020 +0000

description:
Oops, missed  a couple.

diffstat:

 sys/kern/kern_pmf.c      |  6 +++---
 sys/kern/kern_veriexec.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 957a6b2d3f0f -r 9ed73949252d sys/kern/kern_pmf.c
--- a/sys/kern/kern_pmf.c       Thu Jun 11 02:28:01 2020 +0000
+++ b/sys/kern/kern_pmf.c       Thu Jun 11 02:30:21 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_pmf.c,v 1.44 2020/06/11 02:28:01 thorpej Exp $ */
+/* $NetBSD: kern_pmf.c,v 1.45 2020/06/11 02:30:21 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_pmf.c,v 1.44 2020/06/11 02:28:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_pmf.c,v 1.45 2020/06/11 02:30:21 thorpej Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -404,7 +404,7 @@
        if (pmf_platform == NULL)
                return NULL;
 
-       if (!prop_dictionary_get_cstring_nocopy(pmf_platform, key, &value))
+       if (!prop_dictionary_get_string(pmf_platform, key, &value))
                return NULL;
 
        return value;
diff -r 957a6b2d3f0f -r 9ed73949252d sys/kern/kern_veriexec.c
--- a/sys/kern/kern_veriexec.c  Thu Jun 11 02:28:01 2020 +0000
+++ b/sys/kern/kern_veriexec.c  Thu Jun 11 02:30:21 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_veriexec.c,v 1.25 2020/06/11 02:28:01 thorpej Exp $       */
+/*     $NetBSD: kern_veriexec.c,v 1.26 2020/06/11 02:30:21 thorpej Exp $       */
 
 /*-
  * Copyright (c) 2005, 2006 Elad Efrat <elad%NetBSD.org@localhost>
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_veriexec.c,v 1.25 2020/06/11 02:28:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_veriexec.c,v 1.26 2020/06/11 02:30:21 thorpej Exp $");
 
 #include "opt_veriexec.h"
 
@@ -1045,7 +1045,7 @@
        int error;
        bool ignore_dup = false;
 
-       if (!prop_dictionary_get_cstring_nocopy(dict, "file", &file))
+       if (!prop_dictionary_get_string(dict, "file", &file))
                return (EINVAL);
 
        error = namei_simple_kernel(file, NSM_FOLLOW_NOEMULROOT, &vp);



Home | Main Index | Thread Index | Old Index