From: Geoff Levand Date: Mon, 22 Apr 2013 00:49:37 +0000 (-0700) Subject: event: Make strings const X-Git-Tag: v1.0.0~705 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=7acd3374490fd4fe035edcbd2c1393961e6090db event: Make strings const The processing of events does not modify the event strings, so change the strings in struct event to const (read-only). Signed-off-by: Geoff Levand --- diff --git a/discover/event.h b/discover/event.h index 91575cc..900ced8 100644 --- a/discover/event.h +++ b/discover/event.h @@ -16,11 +16,11 @@ enum event_action { struct event { enum event_type type; enum event_action action; - char *device; + const char *device; struct param { - char *name; - char *value; + const char *name; + const char *value; } *params; int n_params; };