tMinor cleanups of signed and boolean variables - vaccinewars - be a doctor and… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit e7acc64e6c87acde465be7ca02b734ed4bc46b04 | |
parent 98472ccb97e197968d9d74a66540f048caf25844 | |
Author: Ben Webb <[email protected]> | |
Date: Wed, 12 Sep 2001 17:41:44 +0000 | |
Minor cleanups of signed and boolean variables | |
Diffstat: | |
M configure | 1 + | |
M src/AIPlayer.c | 6 +++--- | |
2 files changed, 4 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/configure b/configure | |
t@@ -4752,6 +4752,7 @@ else | |
fi | |
if test -n "$GCC"; then | |
+ CFLAGS="$CFLAGS -Wall -Wfloat-equal -Wpointer-arith -Wcast-qual -Wcast-alig… | |
CFLAGS="$CFLAGS -Wall" | |
fi | |
diff --git a/src/AIPlayer.c b/src/AIPlayer.c | |
t@@ -289,14 +289,14 @@ int HandleAIMessage(char *Message,Player *AIPlay) { | |
void PrintAIMessage(char *Text) { | |
/* Prints a message received via a printmessage or question */ | |
/* network message, stored in "Text" */ | |
- int i; | |
- char SomeText=0; | |
+ unsigned i; | |
+ gboolean SomeText=FALSE; | |
for (i=0;i<strlen(Text);i++) { | |
if (Text[i]=='^') { | |
if (SomeText) putchar('\n'); | |
} else { | |
putchar(Text[i]); | |
- SomeText=1; | |
+ SomeText=TRUE; | |
} | |
} | |
putchar('\n'); |