diff options
author | Geoff Levand <geoff@infradead.org> | 2013-04-21 17:49:37 -0700 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2013-04-28 12:34:05 -0700 |
commit | 7acd3374490fd4fe035edcbd2c1393961e6090db (patch) | |
tree | 74269f29887e93dbbb865852e426b066fa505abd /discover/event.h | |
parent | 158b5a1ec8b4156da1d335a4f940919578928790 (diff) | |
download | talos-petitboot-7acd3374490fd4fe035edcbd2c1393961e6090db.tar.gz talos-petitboot-7acd3374490fd4fe035edcbd2c1393961e6090db.zip |
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 <geoff@infradead.org>
Diffstat (limited to 'discover/event.h')
-rw-r--r-- | discover/event.h | 6 |
1 files 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; }; |