chiark / gitweb /
udevadm: place const in the right place
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 23 Mar 2013 02:55:05 +0000 (22:55 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 23 Mar 2013 03:08:17 +0000 (23:08 -0400)
Otherwise clang at least thinks that both consts apply to char.

src/udev/udevadm-info.c

index c47821401adb9d5e8abead2911c2c7a60b7c2543..002876594f75a135758811134ff6f73810955041 100644 (file)
@@ -33,7 +33,7 @@
 
 static bool skip_attribute(const char *name)
 {
-        static const char const *skip[] = {
+        static const char* const skip[] = {
                 "uevent",
                 "dev",
                 "modalias",