Module Name: src Committed By: riastradh Date: Sat Mar 18 05:49:17 UTC 2017
Modified Files: src/sys/kern: kern_uidinfo.c Log Message: Nix trailing whitespace. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/kern/kern_uidinfo.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_uidinfo.c diff -u src/sys/kern/kern_uidinfo.c:1.8 src/sys/kern/kern_uidinfo.c:1.9 --- src/sys/kern/kern_uidinfo.c:1.8 Sun Mar 10 17:55:42 2013 +++ src/sys/kern/kern_uidinfo.c Sat Mar 18 05:49:17 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_uidinfo.c,v 1.8 2013/03/10 17:55:42 pooka Exp $ */ +/* $NetBSD: kern_uidinfo.c,v 1.9 2017/03/18 05:49:17 riastradh Exp $ */ /*- * Copyright (c) 1982, 1986, 1991, 1993 @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_uidinfo.c,v 1.8 2013/03/10 17:55:42 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_uidinfo.c,v 1.9 2017/03/18 05:49:17 riastradh Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -54,7 +54,7 @@ static u_long uihash; static int sysctl_kern_uidinfo_cnt(SYSCTLFN_ARGS) -{ +{ static const struct { const char *name; u_int value; @@ -76,7 +76,7 @@ sysctl_kern_uidinfo_cnt(SYSCTLFN_ARGS) node.sysctl_data = &cnt; uip = uid_find(kauth_cred_geteuid(l->l_cred)); - *(uint64_t *)node.sysctl_data = + *(uint64_t *)node.sysctl_data = *(u_long *)((char *)uip + nv[i].value); return sysctl_lookup(SYSCTLFN_CALL(&node));