Silence some compile warnings.
[super-star-trek.git] / src / io.c
index 4571db2c3821d9ba6875705c9d6c8dec14b1e51c..fa028f52933078a621d985bbbac65c2fa3cea186 100644 (file)
--- a/src/io.c
+++ b/src/io.c
@@ -86,16 +86,13 @@ void waitfor(void)
 /* wait for user action -- OK to do nothing if on a TTY */
 {
     if (game.options & OPTION_CURSES)
-       getch();
+       wgetch(prompt_window);
 }
 
 void announce(void)
 {
     skip(1);
-    if (game.skill > SKILL_FAIR)
-       prouts(_("[ANOUNCEMENT ARRIVING...]"));
-    else
-       prouts(_("[IMPORTANT ANNOUNCEMENT ARRIVING -- PRESS ENTER TO CONTINUE]"));
+    prouts(_("[ANNOUNCEMENT ARRIVING...]"));
     skip(1);
 }
 
@@ -212,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';
 }
 
@@ -393,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);