From e29ebfa29f49f5741bda96618a37dc52f46d93fc Mon Sep 17 00:00:00 2001 From: su8 Date: Mon, 6 Aug 2018 09:41:02 +0200 Subject: [PATCH] Remove code smells --- src/x11.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/x11.cc b/src/x11.cc index 2cd172d0..f0fddbda 100644 --- a/src/x11.cc +++ b/src/x11.cc @@ -1331,7 +1331,9 @@ void print_kb_layout(struct text_object *obj, char *p, int p_max_size) { void print_mouse_speed(struct text_object *obj, char *p, int p_max_size) { (void)obj; - int acc_num = 0, acc_denom = 0, threshold = 0; + int acc_num = 0; + int acc_denom = 0; + int threshold = 0; XGetPointerControl(display, &acc_num, &acc_denom, &threshold); snprintf(p, p_max_size, "%d%%", (110 - threshold));