Index: bluetooth.c
===================================================================
--- bluetooth.c	(revision 229)
+++ bluetooth.c	(working copy)
@@ -88,7 +88,7 @@
 
 static int previous_bytes = -1;
 
-void turn_bluetooth_off(void)
+static void turn_bluetooth_off(void)
 {
 	system("hciconfig hci0 down &> /dev/null");
 	system("/sbin/rmmod hci_usb &> /dev/null");
Index: ethernet.c
===================================================================
--- ethernet.c	(revision 229)
+++ ethernet.c	(working copy)
@@ -49,7 +49,7 @@
 
 #include "powertop.h"
 
-void activate_WOL_suggestion(void) 
+static void activate_WOL_suggestion(void) 
 {
 	int sock;
 	struct ifreq ifr;
Index: process.c
===================================================================
--- process.c	(revision 229)
+++ process.c	(working copy)
@@ -62,7 +62,7 @@
 	kill(pid, SIGTERM);
 }
 
-void do_kill(void)
+static void do_kill(void)
 {
 	char line[2048];
 
Index: powertop.c
===================================================================
--- powertop.c	(revision 229)
+++ powertop.c	(working copy)
@@ -77,7 +77,7 @@
 
 double displaytime = 0.0;
 
-void push_line(char *string, int count)
+static void push_line(char *string, int count)
 {
 	int i;
 
@@ -94,7 +94,7 @@
 	linehead++;
 }
 
-void clear_lines(void)
+static void clear_lines(void)
 {
 	int i;
 	for (i = 0; i < linehead; i++)
@@ -104,7 +104,7 @@
 	lines = NULL;
 }
 
-void count_lines(void)
+static void count_lines(void)
 {
 	uint64_t q = 0;
 	int i;
@@ -113,7 +113,7 @@
 	linectotal = q;
 }
 
-int update_irq(int irq, uint64_t count, char *name)
+static int update_irq(int irq, uint64_t count, char *name)
 {
 	int i;
 	int firstfree = IRQCOUNT;
@@ -252,7 +252,7 @@
 	closedir(dir);
 }
 
-void stop_timerstats(void)
+static void stop_timerstats(void)
 {
 	FILE *file;
 	file = fopen("/proc/timer_stats", "w");
@@ -263,7 +263,7 @@
 	fprintf(file, "0\n");
 	fclose(file);
 }
-void start_timerstats(void)
+static void start_timerstats(void)
 {
 	FILE *file;
 	file = fopen("/proc/timer_stats", "w");
@@ -275,18 +275,18 @@
 	fclose(file);
 }
 
-int line_compare (const void *av, const void *bv)
+static int line_compare (const void *av, const void *bv)
 {
 	const struct line	*a = av, *b = bv;
 	return b->count - a->count;
 }
 
-void sort_lines(void)
+static void sort_lines(void)
 {
 	qsort (lines, linehead, sizeof (struct line), line_compare);
 }
 
-void print_battery(void)
+static void print_battery(void)
 {
 	DIR *dir;
 	struct dirent *dirent;
Index: cpufreqstats.c
===================================================================
--- cpufreqstats.c	(revision 229)
+++ cpufreqstats.c	(working copy)
@@ -50,13 +50,13 @@
 	memset(freqs, 0, sizeof(freqs));
 }
 
-int sort_by_count (const void *av, const void *bv)
+static int sort_by_count (const void *av, const void *bv)
 {
         const struct cpufreqdata       *a = av, *b = bv;
         return b->count - a->count;
 } 
 
-int sort_by_freq (const void *av, const void *bv)
+static int sort_by_freq (const void *av, const void *bv)
 {
         const struct cpufreqdata       *a = av, *b = bv;
         return b->frequency - a->frequency;
Index: misctips.c
===================================================================
--- misctips.c	(revision 229)
+++ misctips.c	(working copy)
@@ -32,7 +32,7 @@
 
 #include "powertop.h"
 
-void set_laptop_mode(void)
+static void set_laptop_mode(void)
 {
 	FILE *file;
 	file = fopen("/proc/sys/vm/laptop_mode", "w");
@@ -82,7 +82,7 @@
 	fclose(file);
 }
 
-void nmi_watchdog_off(void)
+static void nmi_watchdog_off(void)
 {
 	FILE *file;
 	file = fopen("/proc/sys/kernel/nmi_watchdog", "w");
@@ -139,7 +139,7 @@
 			  "have much longer sleep intervals."), 7, 0, NULL, NULL);
 }
 
-void ac97_power_on(void)
+static void ac97_power_on(void)
 {
 	FILE *file;
 	file = fopen("/sys/module/snd_ac97_codec/parameters/power_save", "w");
@@ -176,7 +176,7 @@
 	fclose(file);
 }
 
-void noatime_on(void)
+static void noatime_on(void)
 {
 	system("/bin/mount -o remount,noatime /");
 }
@@ -205,7 +205,7 @@
 	fclose(file);
 }
 
-void powersched_on(void)
+static void powersched_on(void)
 {
 	FILE *file;
 	file = fopen("/sys/devices/system/cpu/sched_mc_power_savings", "w");
@@ -268,7 +268,7 @@
 }
 
 
-void writeback_long(void)
+static void writeback_long(void)
 {
 	FILE *file;
 	file = fopen("/proc/sys/vm/dirty_writeback_centisecs", "w");
Index: wireless.c
===================================================================
--- wireless.c	(revision 229)
+++ wireless.c	(working copy)
@@ -113,7 +113,7 @@
 }
 
 
-void find_wireless_nic(void) 
+static void find_wireless_nic(void) 
 {
 	FILE *file;
 	int sock;
@@ -175,14 +175,14 @@
 	close(sock);
 }
 
-void activate_wireless_suggestion(void)
+static void activate_wireless_suggestion(void)
 {
 	char line[1024];
 	sprintf(line, "/sbin/iwpriv %s set_power 5 2> /dev/null", wireless_nic);
 	system(line);
 }
 
-void activate_rfkill_suggestion(void)
+static void activate_rfkill_suggestion(void)
 {	
 	FILE *file;
 	file = fopen(rfkill_path, "w");
_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to