Source-Changes-HG archive

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

[src/pgoyette-compat]: src/sys/kern Since we use pointer semantics when walki...



details:   https://anonhg.NetBSD.org/src/rev/3a1e52a25dce
branches:  pgoyette-compat
changeset: 321008:3a1e52a25dce
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sun Mar 11 08:32:21 2018 +0000

description:
Since we use pointer semantics when walking the alias lists, declare
the pointer variable accordingly.

diffstat:

 sys/kern/kern_module.c |  10 +++++-----
 sys/kern/sys_module.c  |   6 +++---
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r 818d28a30858 -r 3a1e52a25dce sys/kern/kern_module.c
--- a/sys/kern/kern_module.c    Sun Mar 11 07:25:59 2018 +0000
+++ b/sys/kern/kern_module.c    Sun Mar 11 08:32:21 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_module.c,v 1.130.2.2 2018/03/11 07:25:59 pgoyette Exp $   */
+/*     $NetBSD: kern_module.c,v 1.130.2.3 2018/03/11 08:32:21 pgoyette Exp $   */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.130.2.2 2018/03/11 07:25:59 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.130.2.3 2018/03/11 08:32:21 pgoyette Exp $");
 
 #define _MODULE_INTERNAL
 
@@ -666,7 +666,7 @@
 int
 module_alias_lookup(const char *name, module_t *mod)
 {
-       const char * const      aliasp[];
+       const char * const *aliasp;
 
        aliasp = *mod->mod_info->mi_aliases;
        if (aliasp == NULL)
@@ -784,7 +784,7 @@
     prop_dictionary_t props)
 {
        const char *p, *s;
-       const char * const      aliasp[];
+       const char * const *aliasp;
        char buf[MAXMODNAME];
        modinfo_t *mi = NULL;
        module_t *mod, *mod2, *mod_loaded, *prev_active;
@@ -910,7 +910,7 @@
        prop_dictionary_t filedict;
        char buf[MAXMODNAME];
        const char *s, *p;
-       const char * const aliasp[];
+       const char * const *aliasp;
        int error;
        size_t len;
 
diff -r 818d28a30858 -r 3a1e52a25dce sys/kern/sys_module.c
--- a/sys/kern/sys_module.c     Sun Mar 11 07:25:59 2018 +0000
+++ b/sys/kern/sys_module.c     Sun Mar 11 08:32:21 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_module.c,v 1.23.2.2 2018/03/11 07:25:59 pgoyette Exp $     */
+/*     $NetBSD: sys_module.c,v 1.23.2.3 2018/03/11 08:32:21 pgoyette Exp $     */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_module.c,v 1.23.2.2 2018/03/11 07:25:59 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_module.c,v 1.23.2.3 2018/03/11 08:32:21 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_modular.h"
@@ -122,7 +122,7 @@
        int error;
        int mscnt;
        bool stataddr;
-       const char * const aliasp[];
+       const char * const *aliasp;
 
        /* If not privileged, don't expose kernel addresses. */
        error = kauth_authorize_system(kauth_cred_get(), KAUTH_SYSTEM_MODULE,



Home | Main Index | Thread Index | Old Index