From a0bb5b9abf33dc2d2220eb3bd6e79c964e92a1c1 Mon Sep 17 00:00:00 2001 From: lukem Date: Sun, 12 Oct 1997 14:09:55 +0000 Subject: WARNSify --- robots/query.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'robots/query.c') diff --git a/robots/query.c b/robots/query.c index b33ed63c..e0ca5823 100644 --- a/robots/query.c +++ b/robots/query.c @@ -1,4 +1,4 @@ -/* $NetBSD: query.c,v 1.3 1995/04/22 10:09:05 cgd Exp $ */ +/* $NetBSD: query.c,v 1.4 1997/10/12 14:10:01 lukem Exp $ */ /* * Copyright (c) 1980, 1993 @@ -33,11 +33,12 @@ * SUCH DAMAGE. */ +#include #ifndef lint #if 0 static char sccsid[] = "@(#)query.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: query.c,v 1.3 1995/04/22 10:09:05 cgd Exp $"; +__RCSID("$NetBSD: query.c,v 1.4 1997/10/12 14:10:01 lukem Exp $"); #endif #endif /* not lint */ @@ -47,11 +48,12 @@ static char rcsid[] = "$NetBSD: query.c,v 1.3 1995/04/22 10:09:05 cgd Exp $"; * query: * Ask a question and get a yes or no answer. Default is "no". */ +int query(prompt) -char *prompt; + char *prompt; { - register int c, retval; - register int y, x; + int c, retval; + int y, x; getyx(stdscr, y, x); move(Y_PROMPT, X_PROMPT); -- cgit v1.2.3