diff mbox series

[v2,19/30] discover/event: Rename param -> event_param

Message ID 0e7ce185c6a7f690cd660811034a2c62f7b4fc19.1533230644.git.geoff@infradead.org
State Accepted
Headers show
Series [v2,01/30] docker: Add libfdt-dev | expand

Commit Message

Geoff Levand Aug. 2, 2018, 5:29 p.m. UTC
To avoid name clash with other 'struct param'.

Signed-off-by: Geoff Levand <geoff@infradead.org>
---
 discover/event.c | 8 ++++----
 discover/event.h | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/discover/event.c b/discover/event.c
index ead2fda..ec5537a 100644
--- a/discover/event.c
+++ b/discover/event.c
@@ -80,7 +80,7 @@  static int event_parse_ad_header(char *buf, int len, enum event_action *action,
 static void event_parse_params(struct event *event, const char *buf, int len)
 {
 	int param_len, name_len, value_len;
-	struct param *param;
+	struct event_param *param;
 	char *sep;
 
 	for (; len > 0; len -= param_len + 1, buf += param_len + 1) {
@@ -95,7 +95,7 @@  static void event_parse_params(struct event *event, const char *buf, int len)
 
 		/* update the params array */
 		event->params = talloc_realloc(event, event->params,
-					struct param, ++event->n_params);
+					struct event_param, ++event->n_params);
 		param = &event->params[event->n_params - 1];
 
 		sep = memchr(buf, '=', param_len);
@@ -150,7 +150,7 @@  const char *event_get_param(const struct event *event, const char *name)
 
 void event_set_param(struct event *event, const char *name, const char *value)
 {
-	struct param *param;
+	struct event_param *param;
 	int i;
 
 	/* if it's already present, replace the value of the old param */
@@ -165,7 +165,7 @@  void event_set_param(struct event *event, const char *name, const char *value)
 
 	/* not found - create a new param */
 	event->params = talloc_realloc(event, event->params,
-				struct param, ++event->n_params);
+				struct event_param, ++event->n_params);
 	param = &event->params[event->n_params - 1];
 
 	param->name = talloc_strdup(event, name);
diff --git a/discover/event.h b/discover/event.h
index 1f6966c..2d83ad9 100644
--- a/discover/event.h
+++ b/discover/event.h
@@ -23,7 +23,7 @@  struct event {
 	enum event_action action;
 	const char *device;
 
-	struct param {
+	struct event_param {
 		char *name;
 		char *value;
 	} *params;