1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00

Remove code smells

This commit is contained in:
su8 2018-08-06 09:41:02 +02:00
parent 2a24fe36db
commit e29ebfa29f

View File

@ -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 print_mouse_speed(struct text_object *obj, char *p, int p_max_size) {
(void)obj; (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); XGetPointerControl(display, &acc_num, &acc_denom, &threshold);
snprintf(p, p_max_size, "%d%%", (110 - threshold)); snprintf(p, p_max_size, "%d%%", (110 - threshold));