-/* $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
#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 */
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;
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;
{
break;
#ifdef UNIX_BSD4_2
case '\032':
- printf(CL);
+ printf("%s", CL);
fflush(stdout);
tstp();
break;
void
pad(s, n)
- char *s;
+ const char *s;
short n;
{
short i;
int
r_index(str, ch, last)
- char *str;
+ const char *str;
int ch;
boolean last;
{