Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern No need take the address of an array (&array) since...
details: https://anonhg.NetBSD.org/src/rev/0fd55efae62c
branches: trunk
changeset: 778202:0fd55efae62c
user: matt <matt%NetBSD.org@localhost>
date: Mon Mar 19 06:04:19 2012 +0000
description:
No need take the address of an array (&array) since an array is already a
pointer.
diffstat:
sys/kern/kern_prot.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b98e586d4a3f -r 0fd55efae62c sys/kern/kern_prot.c
--- a/sys/kern/kern_prot.c Mon Mar 19 05:38:26 2012 +0000
+++ b/sys/kern/kern_prot.c Mon Mar 19 06:04:19 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_prot.c,v 1.113 2011/04/27 06:22:11 martin Exp $ */
+/* $NetBSD: kern_prot.c,v 1.114 2012/03/19 06:04:19 matt Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1990, 1991, 1993
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_prot.c,v 1.113 2011/04/27 06:22:11 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_prot.c,v 1.114 2012/03/19 06:04:19 matt Exp $");
#include "opt_compat_43.h"
@@ -609,7 +609,7 @@
if ((error = kauth_authorize_process(l->l_cred, KAUTH_PROCESS_SETID,
p, NULL, NULL, NULL)) != 0)
return (error);
- error = copyinstr(SCARG(uap, namebuf), &newname, sizeof newname, NULL);
+ error = copyinstr(SCARG(uap, namebuf), newname, sizeof newname, NULL);
if (error != 0)
return (error == ENAMETOOLONG ? EINVAL : error);
Home |
Main Index |
Thread Index |
Old Index