From: Jonathan Neuschäfer Date: Thu, 29 Dec 2011 21:04:13 +0000 (+0100) Subject: conf: make "hardware-cursor" a macro X-Git-Tag: release-0.20~10^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d2487a92eec248d647bdfd1b2d11c202122762b4;p=ncmpc.git conf: make "hardware-cursor" a macro --- diff --git a/src/conf.c b/src/conf.c index e5c5ab6..cf87c00 100644 --- a/src/conf.c +++ b/src/conf.c @@ -72,6 +72,7 @@ #define CONF_SCROLL "scroll" #define CONF_SCROLL_SEP "scroll-sep" #define CONF_VISIBLE_BITRATE "visible-bitrate" +#define CONF_HARDWARE_CURSOR "hardware-cursor" #define CONF_WELCOME_SCREEN_LIST "welcome-screen-list" #define CONF_DISPLAY_TIME "display-time" #define CONF_JUMP_PREFIX_ONLY "jump-prefix-only" @@ -421,7 +422,7 @@ parse_line(char *line) /* wide cursor */ else if (!strcasecmp(CONF_WIDE_CURSOR, name)) options.wide_cursor = str2bool(value); - else if (strcasecmp(name, "hardware-cursor") == 0) + else if (strcasecmp(name, CONF_HARDWARE_CURSOR) == 0) options.hardware_cursor = str2bool(value); /* welcome screen list */ else if (!strcasecmp(CONF_WELCOME_SCREEN_LIST, name))