diff options
author | David <dbphillipsnz@gmail.com> | 2014-09-28 15:49:52 +1300 |
---|---|---|
committer | David <dbphillipsnz@gmail.com> | 2014-09-28 15:49:52 +1300 |
commit | 22428b4d31bfbad0462fe13719698232452f4149 (patch) | |
tree | d52cc14b3c5c7eb192c15b7ba85666bc2686dc86 /getgov.c | |
parent | 45f116b0562951775af0d6833229b22b49bc0397 (diff) | |
download | paramano-22428b4d31bfbad0462fe13719698232452f4149.tar.xz |
Code tidy
Diffstat (limited to 'getgov.c')
-rw-r--r-- | getgov.c | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -16,15 +16,7 @@ * <http://www.gnu.org/licenses/>. * ************************************************************************/ -#include "string.h" -#include "getgov.h" -#include "getcore.h" -#include "common.h" - -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <glib.h> +#include "paramano.h" /* [CORE][GOVERNOR NUMBER] */ char governors[999][50][13]; @@ -36,9 +28,9 @@ int total_governors; void gg_init() { gchar gov_string[500]; - int i = 0; + unsigned int i = 0; total_governors = 0; - for (i = 0; i < gc_number(); ++i) + for (i = 0; i < gc_number(); i++) { memset(gov_string, '\0', sizeof(gov_string) ); gg_available(i, gov_string, sizeof(gov_string) ); @@ -120,7 +112,7 @@ char* gg_gov(int core, int index) /*********************************************************************** * Return total number of governors **********************************************************************/ -int gg_number() +unsigned int gg_number() { return total_governors; } |