<sys/ktr.h>: Move static to the first place in declarations.
authorSascha Wildner <saw@online.de>
Sat, 10 Dec 2011 00:56:11 +0000 (01:56 +0100)
committerSascha Wildner <saw@online.de>
Sat, 10 Dec 2011 00:56:11 +0000 (01:56 +0100)
The C standard discourages placing storage-class specifiers (typedef,
extern, static, auto, register) other than first in a declaration since
C90.

sys/sys/ktr.h

index dc933f9..48b1ad3 100644 (file)
@@ -157,10 +157,10 @@ SYSCTL_DECL(_debug_ktr);
 #else
 
 #define KTR_INFO_MASTER(master)                                                \
-           const static int ktr_ ## master ## _enable = 0
+           static const int ktr_ ## master ## _enable = 0
 
 #define KTR_INFO_MASTER_EXTERN(master)                                 \
-           const static int ktr_ ## master ## _enable
+           static const int ktr_ ## master ## _enable
 
 #define KTR_INFO(compile, master, name, maskbit, format, datasize)     \
            static const int ktr_ ## master ## _ ## name ## _mask =     \