From 592cd446219497b242dec08d3f36dc3c5cdaea64 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Mon, 8 Dec 2014 21:01:49 -0600 Subject: [PATCH] wmifinfo: Fix -Wpointer-sign compiler warnings. --- wmifinfo/wmifinfo.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/wmifinfo/wmifinfo.c b/wmifinfo/wmifinfo.c index c8d7871..51e0dc3 100644 --- a/wmifinfo/wmifinfo.c +++ b/wmifinfo/wmifinfo.c @@ -58,7 +58,7 @@ struct ifinfo_t { char id[16]; int state; - char hw[6]; + unsigned char hw[6]; uint32_t ip; uint32_t nm; uint32_t gw; @@ -178,13 +178,15 @@ int main(int argc, char *argv[]) initXwindow(argc, argv); if(mode == MODE_LED) { - openXwindow(argc, argv, wmifinfo_led_xpm, wmifinfo_led_bits, - wmifinfo_led_width, wmifinfo_led_height, BackColor, - LabelColor, WindGustColor, DataColor, StationTimeColor); + openXwindow(argc, argv, (char **) wmifinfo_led_xpm, + (char*) wmifinfo_led_bits, wmifinfo_led_width, + wmifinfo_led_height, BackColor, LabelColor, + WindGustColor, DataColor, StationTimeColor); } else { - openXwindow(argc, argv, wmifinfo_lcd_xpm, wmifinfo_lcd_bits, - wmifinfo_lcd_width, wmifinfo_lcd_height, BackColor, - LabelColor, WindGustColor, DataColor, StationTimeColor); + openXwindow(argc, argv, (char **) wmifinfo_lcd_xpm, + (char*) wmifinfo_lcd_bits, wmifinfo_lcd_width, + wmifinfo_lcd_height, BackColor, LabelColor, + WindGustColor, DataColor, StationTimeColor); } // Initialize global variables