From b6aae0f38194cd39960a898606ee65d4be93a895 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 29 Jan 2007 22:51:25 +0000 Subject: preparatory patch for -Wwrite-strings #2 --- util-linux/mdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util-linux/mdev.c') 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) } if (ENABLE_FEATURE_MDEV_EXEC && field == 3) { // Command to run - char *s = "@$*", *s2; + const char *s = "@$*"; + const char *s2; s2 = strchr(s, *pos++); if (!s2) { // Force error -- cgit v1.2.3