diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2018-03-03 12:00:32 +0100 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2018-03-03 12:00:32 +0100 |
commit | 6f9da97565fd5279809caa1acb9b734a0cee0e93 (patch) | |
tree | b41dfdd66b53ff613ee38b4750afe141ec0232e4 | |
parent | f8428d1063c6420ee43424269149a65f8c33812f (diff) |
xcb errors: address declare-assign style
-rw-r--r-- | xwayland/xwm.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c index 09f30d3d..b25ee142 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -965,20 +965,21 @@ static void xwm_handle_xcb_error(struct wlr_xwm *xwm, xcb_value_error_t *ev) { goto log_raw; } - const char *major_name; - major_name = xcb_errors_get_name_for_major_code(err_ctx, ev->major_opcode); + const char *major_name = + xcb_errors_get_name_for_major_code(err_ctx, ev->major_opcode); if (!major_name) { wlr_log(L_DEBUG, "xcb error happened, but could not get major name"); xcb_errors_context_free(err_ctx); goto log_raw; } - const char *minor_name; - minor_name = xcb_errors_get_name_for_minor_code(err_ctx, - ev->major_opcode, ev->minor_opcode); + const char *minor_name = + xcb_errors_get_name_for_minor_code(err_ctx, + ev->major_opcode, ev->minor_opcode); - const char *error_name, *extension; - error_name = xcb_errors_get_name_for_error(err_ctx, ev->error_code, &extension); + const char *extension; + const char *error_name = + xcb_errors_get_name_for_error(err_ctx, ev->error_code, &extension); if (!error_name) { wlr_log(L_DEBUG, "xcb error happened, but could not get error name"); xcb_errors_context_free(err_ctx); |