From b3779558dcfbe99f0b9c1ef796e3728edad25672 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Fri, 8 May 2009 14:27:42 -0400 Subject: init: Fix some broken code that did not cause problems until switching to gcc 4.4 Signed-off-by: Mike Lockwood --- init/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init/parser.c') diff --git a/init/parser.c b/init/parser.c index 6a22d242..30fa3de6 100644 --- a/init/parser.c +++ b/init/parser.c @@ -536,7 +536,7 @@ void queue_all_property_triggers() const char* name = act->name + strlen("property:"); const char* equals = strchr(name, '='); if (equals) { - char* prop_name[PROP_NAME_MAX + 1]; + char prop_name[PROP_NAME_MAX + 1]; const char* value; int length = equals - name; if (length > PROP_NAME_MAX) { @@ -546,7 +546,7 @@ void queue_all_property_triggers() prop_name[length] = 0; /* does the property exist, and match the trigger value? */ - value = property_get((const char *)&prop_name[0]); + value = property_get(prop_name); if (value && !strcmp(equals + 1, value)) { action_add_queue_tail(act); } -- cgit v1.2.3