tMinor cleanups of signed and boolean variables - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit e7acc64e6c87acde465be7ca02b734ed4bc46b04
(DIR) parent 98472ccb97e197968d9d74a66540f048caf25844
(HTM) Author: Ben Webb <ben@salilab.org>
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(-)
---
(DIR) 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-align -Wsign-compare -Waggregate-return -Wredundant-decls -Wnested-externs -Wunused"
CFLAGS="$CFLAGS -Wall"
fi
(DIR) 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');