From 7acd3374490fd4fe035edcbd2c1393961e6090db Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Sun, 21 Apr 2013 17:49:37 -0700 Subject: [PATCH 1/1] 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 --- discover/event.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }; -- 2.39.2