git: df949e762c67 - main - kern_environment: Partially apply style(9)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Jan 2023 17:50:16 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=df949e762c67b4b4109dd16b0179f17faa925cd2 commit df949e762c67b4b4109dd16b0179f17faa925cd2 Author: Jose Luis Duran <jlduran@gmail.com> AuthorDate: 2022-03-11 00:53:02 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2023-01-30 17:47:56 +0000 kern_environment: Partially apply style(9) Sort include files, remove duplicates and remove trailing whitespce. Pull Request: https://github.com/freebsd/freebsd-src/pull/589 Reviewed by: imp --- sys/kern/kern_environment.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sys/kern/kern_environment.c b/sys/kern/kern_environment.c index f4c720aaaeb4..c39b9cb682a0 100644 --- a/sys/kern/kern_environment.c +++ b/sys/kern/kern_environment.c @@ -40,19 +40,19 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> -#include <sys/proc.h> -#include <sys/queue.h> +#include <sys/systm.h> +#include <sys/kenv.h> +#include <sys/kernel.h> +#include <sys/libkern.h> +#include <sys/limits.h> #include <sys/lock.h> #include <sys/malloc.h> #include <sys/mutex.h> #include <sys/priv.h> -#include <sys/kenv.h> -#include <sys/kernel.h> -#include <sys/systm.h> +#include <sys/proc.h> +#include <sys/queue.h> +#include <sys/sysent.h> #include <sys/sysproto.h> -#include <sys/libkern.h> -#include <sys/kenv.h> -#include <sys/limits.h> #include <security/mac/mac_framework.h> @@ -782,7 +782,7 @@ getenv_array(const char *name, void *pdata, int size, int *psize, /* check for invalid value */ if (ptr == end) goto error; - + /* check for valid suffix */ switch (*end) { case 't':