X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/5bca13d3536be2816d3c9452b0ca2e4081c3bb55..679426dc52b7c5ef9223f9ec7065855f81102c78:/monop/getinp.c diff --git a/monop/getinp.c b/monop/getinp.c index 92546ac6..3d0dc637 100644 --- a/monop/getinp.c +++ b/monop/getinp.c @@ -1,4 +1,4 @@ -/* $NetBSD: getinp.c,v 1.17 2008/02/23 20:12:15 dholland Exp $ */ +/* $NetBSD: getinp.c,v 1.19 2012/06/19 05:35:32 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,14 +34,15 @@ #if 0 static char sccsid[] = "@(#)getinp.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: getinp.c,v 1.17 2008/02/23 20:12:15 dholland Exp $"); +__RCSID("$NetBSD: getinp.c,v 1.19 2012/06/19 05:35:32 dholland Exp $"); #endif #endif /* not lint */ #include #include #include -#include "monop.ext" + +#include "monop.h" #define LINE 70 @@ -50,8 +51,7 @@ static char buf[257]; static int comp(const char *); int -getinp(prompt, lst) - const char *prompt, *const lst[]; +getinp(const char *prompt, const char *const lst []) { int i, n_match, match = 0; char *sp; @@ -101,8 +101,7 @@ getinp(prompt, lst) } static int -comp(s1) - const char *s1; +comp(const char *s1) { const char *sp, *tsp; char c;