diff options
-rw-r--r-- | TODO.md | 8 | ||||
-rw-r--r-- | bat_tray.c | 4 | ||||
-rw-r--r-- | common.c | 1 | ||||
-rw-r--r-- | defaults.c | 8 | ||||
-rw-r--r-- | getcore.c | 3 | ||||
-rw-r--r-- | getfreq.c | 4 | ||||
-rw-r--r-- | getgov.c | 4 |
7 files changed, 8 insertions, 24 deletions
@@ -1,19 +1,13 @@ To do ===== -High Priority -------------- -* Make tooltip strings cached - Normal Priority --------------- -* Remove some calls to debug, replace with assertions * Remove all calls to asprintf, replace with snprintf * Get rid of various magic numbers * Sniff for memory leaks -* Investigate shared library rather than calling paramano-set Low Priority ------------ -* Ensure all is aligns to an explicit style +* Ensure all code aligns to an explicit style * Make a curses-based version of paramano @@ -21,8 +21,8 @@ static GtkStatusIcon* tray; static char tooltip_text[1024]; -int bat_num; // Shortcoming: we only detect one battery -char *CHARGE_VALUE_PATH, *CHARGE_STATE_PATH; +static int bat_num; // Shortcoming: we only detect one battery +static char *CHARGE_VALUE_PATH, *CHARGE_STATE_PATH; /*********************************************************************** * Return the battery level percentage @@ -20,7 +20,6 @@ #include <stdarg.h> - /*********************************************************************** * Return integer value from first line in file (formatted filename) **********************************************************************/ @@ -18,14 +18,6 @@ #include "paramano.h" -/*char* DEFAULT_GOV; -char* DEFAULT_FREQ; -char* DEFAULT_PROG; -char* DEFAULT_BAT_GOV; -char* DEFAULT_AC_GOV; -bool DEFAULT_SHOW_BATTERY = true; -char* DEFAULT_THEME;*/ - void defaults_init() { DEFAULT_GOV = NULL; @@ -18,8 +18,7 @@ #include "paramano.h" -unsigned int cores; - +static unsigned int cores; /*********************************************************************** * Return true/false if specified core num exists @@ -22,8 +22,8 @@ #define MAX_FREQS 50 #define FREQ_LENGTH 14 -char freqs[MAX_CORES][MAX_FREQS][FREQ_LENGTH]; -int total_freqs; // Number of freqs for core 0 +static char freqs[MAX_CORES][MAX_FREQS][FREQ_LENGTH]; +static int total_freqs; // Number of freqs for core 0 /*********************************************************************** @@ -19,8 +19,8 @@ #include "paramano.h" /* [CORE][GOVERNOR NUMBER] */ -char governors[999][50][13]; -int total_governors; +static char governors[999][50][13]; +static int total_governors; /*********************************************************************** * Grab all available governors |