diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 22:51:25 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 22:51:25 +0000 |
commit | b6aae0f38194cd39960a898606ee65d4be93a895 (patch) | |
tree | b73c92aefaf614291a71d05e9d28ca68f4ef021b /util-linux/mdev.c | |
parent | a41fdf331af344ecd3ec230a072857ea197e1890 (diff) | |
download | busybox-w32-b6aae0f38194cd39960a898606ee65d4be93a895.tar.gz busybox-w32-b6aae0f38194cd39960a898606ee65d4be93a895.tar.bz2 busybox-w32-b6aae0f38194cd39960a898606ee65d4be93a895.zip |
preparatory patch for -Wwrite-strings #2
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r-- | util-linux/mdev.c | 3 |
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 |