Index: xfce4-cpu-freq-plugin-0.0.1/panel-plugin/cpu-freq-monitor.c =================================================================== --- xfce4-cpu-freq-plugin-0.0.1/panel-plugin/cpu-freq-monitor.c.orig +++ xfce4-cpu-freq-plugin-0.0.1/panel-plugin/cpu-freq-monitor.c @@ -25,6 +25,9 @@ #include "cpu-freq-monitor.h" #include +#include +#include +#include static gint compare_str (gconstpointer a, gconstpointer b) @@ -49,7 +52,7 @@ file_modified (gpointer data) if (!g_file_test (filePath, G_FILE_TEST_EXISTS)) { g_free (filePath); - return; + return FALSE; } file = fopen (filePath, "r"); @@ -67,7 +70,7 @@ file_modified (gpointer data) if (!g_file_test (filePath, G_FILE_TEST_EXISTS)) { g_free (filePath); - return; + return FALSE; } file = fopen (filePath, "r"); @@ -175,7 +178,7 @@ cpu_add (gint cpu_number, gchar* path) freq = atoi (tokens[i]); cpu->available_freqs = g_list_append ( cpu->available_freqs, - freq); + (gpointer)(intptr_t)freq); i++; } g_strfreev (tokens);