]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - hack/hack.tty.c
games/hack: Fix -Wstringop-truncation warning.
[bsdgames-darwin.git] / hack / hack.tty.c
index 8d0802b76f9907175355cce97dd5c02a7231e3a3..9c9bcefd6235c84417ca575e53f9af78c93c9404 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: hack.tty.c,v 1.14 2009/08/12 07:28:41 dholland Exp $   */
+/*     $NetBSD: hack.tty.c,v 1.16 2011/08/06 20:42:43 dholland Exp $   */
 
 /*-
  * Copyright (c) 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char     sccsid[] = "@(#)hack.tty.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: hack.tty.c,v 1.14 2009/08/12 07:28:41 dholland Exp $");
+__RCSID("$NetBSD: hack.tty.c,v 1.16 2011/08/06 20:42:43 dholland Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -152,8 +152,8 @@ gettty(void)
 void
 settty(const char *s)
 {
-       clear_screen();
-       end_screen();
+       clearscreen();
+       endscreen();
        if (s)
                printf("%s", s);
        (void) fflush(stdout);
@@ -193,7 +193,7 @@ setftty(void)
        if (change) {
                setctty();
        }
-       start_screen();
+       startscreen();
 }
 
 
@@ -206,7 +206,7 @@ error(const char *fmt, ...)
 
        va_start(ap, fmt);
        if (settty_needed)
-               settty((char *) 0);
+               settty(NULL);
        vprintf(fmt, ap);
        va_end(ap);
        putchar('\n');
@@ -242,7 +242,7 @@ getlin(char *bufp)
                                bufp--;
                                putstr("\b \b");        /* putsym converts \b */
                        } else
-                               bell();
+                               sound_bell();
                } else if (c == '\n') {
                        *bufp = 0;
                        return;
@@ -263,7 +263,7 @@ getlin(char *bufp)
                                putstr("\b \b");
                        }
                } else
-                       bell();
+                       sound_bell();
        }
 }
 
@@ -305,7 +305,7 @@ xwaitforspace(const char *s)
                                morc = c;
                                break;
                        }
-                       bell();
+                       sound_bell();
                }
        }
 }