From 8ff0b1428170f4574bd02c65645d1b3e56ec4035 Mon Sep 17 00:00:00 2001 From: orbea Date: Wed, 6 Feb 2019 09:16:26 -0800 Subject: [PATCH] Fix C89_BUILD=1. --- gfx/display_servers/dispserv_x11.c | 7 +++---- input/include/xfree86_keycodes.h | 10 +++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/gfx/display_servers/dispserv_x11.c b/gfx/display_servers/dispserv_x11.c index 4ada2b313d..1e3ff2def4 100644 --- a/gfx/display_servers/dispserv_x11.c +++ b/gfx/display_servers/dispserv_x11.c @@ -20,7 +20,7 @@ #include #include #include -#include // run pkg-config --static --libs xrandr +#include /* run pkg-config --static --libs xrandr */ #include #include @@ -265,8 +265,8 @@ static bool x11_display_server_set_resolution(void *data, if (monitor_index == 0) { - - for (int i = 0; i < res->noutput; i++) + int i; + for (i = 0; i < res->noutput; i++) { XRROutputInfo *outputs = XRRGetOutputInfo (dsp, res, res->outputs[i]); @@ -290,7 +290,6 @@ static bool x11_display_server_set_resolution(void *data, } if (monitor_index > 0) { - XRROutputInfo *outputs = XRRGetOutputInfo (dsp, res, res->outputs[monitor_index]); if (outputs->connection == RR_Connected) { diff --git a/input/include/xfree86_keycodes.h b/input/include/xfree86_keycodes.h index 7d92c0a50e..69f2bd002c 100644 --- a/input/include/xfree86_keycodes.h +++ b/input/include/xfree86_keycodes.h @@ -38,7 +38,7 @@ enum xfvk_key XFVK_FK11 = 95, XFVK_FK12 = 96, - // Added for pc105 compatibility + /* Added for pc105 compatibility */ XFVK_LSGT = 94, XFVK_TLDE = 49, XFVK_AE01 = 10, @@ -105,10 +105,10 @@ enum xfvk_key XFVK_RALT = 108, XFVK_PRSC = 107, - // SYRQ = 107, + /* SYRQ = 107, */ XFVK_SCLK = 78, XFVK_PAUS = 127, - // BRK = 419, + /* BRK = 419, */ XFVK_INS = 118, XFVK_HOME = 110, @@ -145,13 +145,13 @@ enum xfvk_key XFVK_KPDL = 91, XFVK_KPEQ = 125, - // Microsoft keyboard extra keys + /* Microsoft keyboard extra keys */ XFVK_LWIN = 133, XFVK_RWIN = 134, XFVK_COMP = 135, XFVK_MENU = XFVK_COMP, - // Extended keys + /* Extended keys */ XFVK_CALC = 148, XFVK_FK13 = 191,