diff options
author | Thomas Haller <thaller@redhat.com> | 2016-02-17 15:14:57 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-02-17 15:17:11 +0100 |
commit | 8c1a9bbb8ca977e26c19b52c8aac29d70e28f535 (patch) | |
tree | 186e5eada5100f016d95b2856e58b013067c7ce5 | |
parent | e13925597f9c89b874719665c5e33fa44584331d (diff) | |
download | NetworkManager-8c1a9bbb8ca977e26c19b52c8aac29d70e28f535.tar.gz |
utils: fix NM_UTILS_ENUM2STR_DEFINE() which always returned the last element
Fixes: 174b25d98c3ae395f5b41fc2e7d5c222cb6369cf
-rw-r--r-- | src/NetworkManagerUtils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NetworkManagerUtils.h b/src/NetworkManagerUtils.h index 0cb5627f29..958ca7a98e 100644 --- a/src/NetworkManagerUtils.h +++ b/src/NetworkManagerUtils.h @@ -229,7 +229,7 @@ const char *nm_utils_flags2str (const NMUtilsFlags2StrDesc *descs, /*****************************************************************************/ -#define NM_UTILS_ENUM2STR(v, n) (void) 0; case v: s = ""n""; (void) 0 +#define NM_UTILS_ENUM2STR(v, n) (void) 0; case v: s = ""n""; break; (void) 0 #define NM_UTILS_ENUM2STR_IGNORE(v) (void) 0; case v: break; (void) 0 #define _NM_UTILS_ENUM2STR_DEFINE(scope, fcn_name, lookup_type, int_fmt, ...) \ |