[PATCH weston 1/2] config-parser: fix `short_name` type

Eric Engestrom eric at engestrom.ch
Wed May 24 20:23:14 UTC 2017


This field is populated with chars, compared to chars and printed as
a char. It should probably be a char.

Signed-off-by: Eric Engestrom <eric at engestrom.ch>
---
 shared/config-parser.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shared/config-parser.h b/shared/config-parser.h
index f18d2c0b..af3f66a2 100644
--- a/shared/config-parser.h
+++ b/shared/config-parser.h
@@ -64,7 +64,7 @@ enum weston_option_type {
 struct weston_option {
 	enum weston_option_type type;
 	const char *name;
-	int short_name;
+	char short_name;
 	void *data;
 };
 
-- 
Cheers,
  Eric



More information about the wayland-devel mailing list