kernel: Fix the _KERNEL/_KERNEL_STRUCTURES checks w/ error msg a bit.
authorSascha Wildner <saw@online.de>
Sat, 10 Aug 2019 11:52:09 +0000 (13:52 +0200)
committerSascha Wildner <saw@online.de>
Sat, 10 Aug 2019 11:52:09 +0000 (13:52 +0200)
commit97b3c8acbaa72d96597f884abbf4d1c4d8790fab
tree6c9da422fddc2c5ea46e17646b2b4e2b2e091ca7
parentab800d2ac9c0f748f10e7c5e0352e86324d75831
kernel: Fix the _KERNEL/_KERNEL_STRUCTURES checks w/ error msg a bit.

Uniformly use this style:

#ifndef _KERNEL
#error "..."
#endif

over this style:

#ifndef _KERNEL
#error "..."
#else
[rest of header]
#endif

Pointed-out-by: zrj
12 files changed:
sys/netgraph/netgraph.h
sys/sys/bus_private.h
sys/sys/ckpt.h
sys/sys/eventvar.h
sys/sys/kernel.h
sys/sys/libkern.h
sys/sys/msgport2.h
sys/sys/power.h
sys/sys/socketops.h
sys/sys/spinlock2.h
sys/sys/systm.h
sys/sys/thread2.h