aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r--util-linux/mdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 957316d52..4a0e9f9fd 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -141,7 +141,8 @@ static void make_device(char *path, int delete)
141 } 141 }
142 if (ENABLE_FEATURE_MDEV_EXEC && field == 3) { 142 if (ENABLE_FEATURE_MDEV_EXEC && field == 3) {
143 // Command to run 143 // Command to run
144 char *s = "@$*", *s2; 144 const char *s = "@$*";
145 const char *s2;
145 s2 = strchr(s, *pos++); 146 s2 = strchr(s, *pos++);
146 if (!s2) { 147 if (!s2) {
147 // Force error 148 // Force error