X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fio.c;h=fa028f52933078a621d985bbbac65c2fa3cea186;hp=416649f9d6b2f667e39d99e233fe5babb544a53a;hb=4d9c5a57b2a16c3c4bc54ab3f897f79101337eb5;hpb=0498b9784da3c7b012bd1b5d0f694d40c28d7466 diff --git a/src/io.c b/src/io.c index 416649f..fa028f5 100644 --- a/src/io.c +++ b/src/io.c @@ -209,12 +209,12 @@ void cgetline(char *line, int max) wrefresh(curwnd); } else { if (replayfp && !feof(replayfp)) - fgets(line, max, replayfp); + (void)fgets(line, max, replayfp); else - fgets(line, max, stdin); + (void)fgets(line, max, stdin); } if (logfp) - fputs(line, logfp); + (void)fputs(line, logfp); line[strlen(line)-1] = '\0'; } @@ -390,7 +390,7 @@ void warble(void) void tracktorpedo(coord w, int l, int i, int n, int iquad) /* torpedo-track animation */ { - if (!game.options & OPTION_CURSES) { + if (!(game.options & OPTION_CURSES)) { if (l == 1) { if (n != 1) { skip(1);