File xfce4-cpufreq-plugin-0.0.1.patch of Package xfce4-panel-plugins
--- 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
@@ -25,6 +25,7 @@
#include "cpu-freq-monitor.h"
#include <dirent.h>
+#include <unistd.h>
static gint
compare_str (gconstpointer a, gconstpointer b)
@@ -50,7 +51,7 @@
if (!g_file_test (filePath, G_FILE_TEST_EXISTS))
{
g_free (filePath);
- return;
+ return FALSE;
}
file = fopen (filePath, "r");
@@ -68,7 +69,7 @@
if (!g_file_test (filePath, G_FILE_TEST_EXISTS))
{
g_free (filePath);
- return;
+ return FALSE;
}
file = fopen (filePath, "r");
@@ -175,7 +176,7 @@
freq = atoi (tokens[i]);
cpu->available_freqs = g_list_append (
cpu->available_freqs,
- freq);
+ (gpointer)(intptr_t)freq);
i++;
}
g_strfreev (tokens);