[PATCH] Fix compiler warnings about shadowed variables

Erik Mouw mouw at nl.linux.org
Wed Jun 6 12:04:30 PDT 2007


Fix shadowed parameters.

They were already fixed in the C files, but not yet in the
header files.
Patch is against the latest SVN version.

Signed-off-by: Erik Mouw <mouw at nl.linux.org>

diff --git a/powertop.h b/powertop.h
index 1860297..8a54f13 100644
--- a/powertop.h
+++ b/powertop.h
@@ -40,7 +40,7 @@ extern int             linehead;
 extern int             linesize;
 extern int             linectotal;
 
-void suggest_process_death(char *process_match, char *process_name, struct line *lines, int linecount, double minwakeups, char *comment, int weight);
+void suggest_process_death(char *process_match, char *process_name, struct line *slines, int linecount, double minwakeups, char *comment, int weight);
 void suggest_kernel_config(char *string, int onoff, char *comment, int weight);
 void suggest_laptop_mode(void);
 void suggest_bluetooth_off(void);
@@ -83,7 +83,7 @@ extern int maxwidth;
 void show_title_bar(void);
 void setup_windows(void);
 void initialize_curses(void);
-void show_acpi_power_line(double rate, double cap, double capdelta, time_t time);
+void show_acpi_power_line(double rate, double cap, double capdelta, time_t ti);
 void show_cstates(void);
 void show_wakeups(double d);
 void show_timerstats(int nostats, int ticktime);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.bughost.org/pipermail/power/attachments/20070606/76a54c8c/attachment.bin


More information about the Power mailing list