diff options
author | Emil Velikov <[email protected]> | 2017-03-31 12:08:38 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-05-08 15:34:21 +0100 |
commit | f12fcb1c9dec9db5f158cc2bdaab273412006bf5 (patch) | |
tree | 8cb8e6648a4940e4f0984e886fe0c61f8fb2d734 /src/egl/main | |
parent | 54f619fb9b558609d433cba6c619c3136eede57d (diff) |
egl: use designated initializers
All the compilers used to build Mesa support them.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/egl/main')
-rw-r--r-- | src/egl/main/egllog.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/egl/main/egllog.c b/src/egl/main/egllog.c index 7af381830ed..bf0ee017b89 100644 --- a/src/egl/main/egllog.c +++ b/src/egl/main/egllog.c @@ -72,17 +72,16 @@ static struct { EGLBoolean initialized; EGLint level; } logging = { - _MTX_INITIALIZER_NP, - EGL_FALSE, - FALLBACK_LOG_LEVEL, + .mutex = _MTX_INITIALIZER_NP, + .initialized = EGL_FALSE, + .level = FALLBACK_LOG_LEVEL, }; static const char *level_strings[] = { - /* the order is important */ - "fatal", - "warning", - "info", - "debug", + [_EGL_FATAL] = "fatal", + [_EGL_WARNING] = "warning", + [_EGL_INFO] = "info", + [_EGL_DEBUG] = "debug", }; |