From: Pavel Labath Date: Tue, 24 Aug 2010 20:23:55 +0000 (+0200) Subject: fix compilation errors in previous commit X-Git-Url: http://vcs.maemo.org/git/?p=monky;a=commitdiff_plain;h=9fc26df1f61dea9597e191ad6a86fe95bb22117d fix compilation errors in previous commit --- diff --git a/src/i8k.c b/src/i8k.c index 9ca1d70..e6ab01f 100644 --- a/src/i8k.c +++ b/src/i8k.c @@ -77,7 +77,7 @@ int update_i8k(void) fclose(fp); - DBG("read `%s' from /proc/i8k\n", i8k_procbuf); + DBGP("read `%s' from /proc/i8k\n", i8k_procbuf); i8k.version = strtok(&i8k_procbuf[0], I8K_DELIM); i8k.bios = strtok(NULL, I8K_DELIM); @@ -94,7 +94,7 @@ int update_i8k(void) static void print_i8k_fan_status(char *p, int p_max_size, const char *status) { - static char *status_arr[] = { "off", "low", "high", "error" }; + static const char *status_arr[] = { "off", "low", "high", "error" }; int i = status ? atoi(status) : 3; if(i < 0 || i > 3)