X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/a0041450da452d421fa15f352d533a000c2e7921..4506ee6421a65ebf465cb3e1124f0ba604dbcb20:/rogue/message.c diff --git a/rogue/message.c b/rogue/message.c index 54ae5b91..17af007c 100644 --- a/rogue/message.c +++ b/rogue/message.c @@ -1,4 +1,4 @@ -/* $NetBSD: message.c,v 1.6 1997/10/12 11:45:25 lukem Exp $ */ +/* $NetBSD: message.c,v 1.8 2000/07/10 10:19:27 itojun Exp $ */ /* * Copyright (c) 1988, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)message.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: message.c,v 1.6 1997/10/12 11:45:25 lukem Exp $"); +__RCSID("$NetBSD: message.c,v 1.8 2000/07/10 10:19:27 itojun Exp $"); #endif #endif /* not lint */ @@ -65,11 +65,11 @@ char msgs[NMESSAGES][DCOLS] = {"", "", "", "", ""}; short msg_col = 0, imsg = -1; boolean msg_cleared = 1, rmsg = 0; char hunger_str[8] = ""; -char *more = "-more-"; +const char *more = "-more-"; void message(msg, intrpt) - char *msg; + const char *msg; boolean intrpt; { cant_int = 1; @@ -137,8 +137,9 @@ check_message() int get_input_line(prompt, insert, buf, if_cancelled, add_blank, do_echo) - char *prompt, *buf, *insert; - char *if_cancelled; + const char *prompt, *insert; + char *buf; + const char *if_cancelled; boolean add_blank; boolean do_echo; { @@ -208,7 +209,7 @@ rgetchar() break; #ifdef UNIX_BSD4_2 case '\032': - printf(CL); + printf("%s", CL); fflush(stdout); tstp(); break; @@ -316,7 +317,7 @@ print_stats(stat_mask) void pad(s, n) - char *s; + const char *s; short n; { short i; @@ -371,7 +372,7 @@ is_digit(ch) int r_index(str, ch, last) - char *str; + const char *str; int ch; boolean last; {