From af4633a8ee31952f6029fae06c6734e38383bc22 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Tue, 24 Aug 2010 22:23:55 +0200 Subject: [PATCH] fix compilation errors in previous commit --- src/i8k.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i8k.cc b/src/i8k.cc index 9962e1b9..3c3db777 100644 --- a/src/i8k.cc +++ b/src/i8k.cc @@ -78,7 +78,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); @@ -95,7 +95,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)