diff options
author | Karl Ramm <kcr@mit.edu> | 2008-01-21 07:57:32 +0000 |
---|---|---|
committer | Karl Ramm <kcr@mit.edu> | 2008-01-21 07:57:32 +0000 |
commit | ee442551e1531712226a3a3ba26afff466100bb5 (patch) | |
tree | d7907b07baecce7abe3940bec566b3bf56596f2f /zwgc/formatter.c | |
parent | e6fb0737027ee97d911e8d507b1db37446067d10 (diff) |
passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem
Diffstat (limited to 'zwgc/formatter.c')
-rw-r--r-- | zwgc/formatter.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/zwgc/formatter.c b/zwgc/formatter.c index 923268e..f5d3c87 100644 --- a/zwgc/formatter.c +++ b/zwgc/formatter.c @@ -176,7 +176,7 @@ static int not_contains(string str, const character_class set) { - while (*str && ! set[*str]) str++; + while (*str && ! set[(int)*str]) str++; return (! *str); } @@ -223,6 +223,7 @@ otherside(char opener) #ifdef DEBUG abort(); #endif + return 0; } /* the char * that str points to is free'd by this function. @@ -328,7 +329,7 @@ protect(string str) temp[templen-2] = *str++; char_stack_pop(chs); temp[templen-1] = '\0'; - } else if (len = pure_text_length(str,tos)) { + } else if ((len = pure_text_length(str,tos))) { if (tos) { /* if the block is text in an environment, just copy it */ @@ -509,8 +510,8 @@ disp_get_cmds(char *str, terminator = char_stack_top(terminators); char_stack_pop(terminators); curstr++; - } else if (len=text_length(curstr,terminator)) { /* if there is a text - block here */ + } else if ((len=text_length(curstr, terminator))) { /* if there is a text + block here */ here->code=DT_STR; here->str=curstr; here->len=len; |