From bac92616d3f0293df969d2557f00a639a83012e9 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Fri, 2 Jun 2017 22:33:55 +0200 Subject: Remove toupper from lexer.c replace by glib equiv. --- lexer/theme-lexer.l | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lexer') diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l index 235a3f7e..a5cc1ed1 100644 --- a/lexer/theme-lexer.l +++ b/lexer/theme-lexer.l @@ -37,7 +37,6 @@ #include #include #include -#include #include #include "rofi.h" #include "theme.h" @@ -92,10 +91,10 @@ static double rofi_theme_parse_convert_hex ( char high, char low) { uint8_t retv = 0; - int t = toupper(high); + int t = g_ascii_toupper ( high ); t = ( t > '9')? (t-'A'+10):(t-'0'); retv = t<<4; - t = toupper ( low ); + t = g_ascii_toupper ( low ); t = ( t > '9')? (t-'A'+10):(t-'0'); retv +=t; return retv/255.0; -- cgit v1.2.3