aboutsummaryrefslogtreecommitdiff
path: root/getgov.c
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-09-28 15:49:52 +1300
committerDavid <dbphillipsnz@gmail.com>2014-09-28 15:49:52 +1300
commitae0bc8b17d75bdbe4e537e97f11fea04c4720c36 (patch)
treed52cc14b3c5c7eb192c15b7ba85666bc2686dc86 /getgov.c
parent808b2a843859d4d51a44688eb02d0e42380f6c27 (diff)
downloadparamano-ae0bc8b17d75bdbe4e537e97f11fea04c4720c36.tar.xz
Code tidy
Diffstat (limited to 'getgov.c')
-rw-r--r--getgov.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/getgov.c b/getgov.c
index c6dec99..cff7329 100644
--- a/getgov.c
+++ b/getgov.c
@@ -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;
}