summaryrefslogtreecommitdiffstats
path: root/discover/event.h
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2013-04-21 17:49:37 -0700
committerGeoff Levand <geoff@infradead.org>2013-04-28 12:34:05 -0700
commit7acd3374490fd4fe035edcbd2c1393961e6090db (patch)
tree74269f29887e93dbbb865852e426b066fa505abd /discover/event.h
parent158b5a1ec8b4156da1d335a4f940919578928790 (diff)
downloadtalos-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.h6
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;
};
OpenPOWER on IntegriCloud