From d9d24acb4fa1c21fbc6972697c28efb9714c5015 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Tue, 22 Nov 2005 00:45:45 +0000 Subject: [PATCH] Warning cleanup (mainly added prototypes). --- demos/ptest.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/demos/ptest.c b/demos/ptest.c index a3a67cb6..b112f159 100644 --- a/demos/ptest.c +++ b/demos/ptest.c @@ -26,7 +26,7 @@ #endif #ifdef PDCDEBUG -char *rcsid_ptest = "$Id: ptest.c,v 1.3 2005/11/20 04:01:00 wmcbrine Exp $"; +char *rcsid_ptest = "$Id: ptest.c,v 1.4 2005/11/22 00:45:45 wmcbrine Exp $"; #endif #include @@ -63,6 +63,15 @@ char *mod[] = "LAST " }; +#ifdef HAVE_PROTO +PANEL *mkpanel(int, int, int, int); +void fill_panel(PANEL *); +void pflush(void); +void wait_a_while(long); +void saywhat(const char *); +void rmpanel(PANEL *); +#endif + /*+------------------------------------------------------------------------- wait_a_while(msec) --------------------------------------------------------------------------*/ @@ -79,7 +88,7 @@ long msec; --------------------------------------------------------------------------*/ void saywhat(text) -char *text; +const char *text; { wmove(stdscr,LINES - 1,0); @@ -354,7 +363,7 @@ register int y,x; #ifdef XCURSES XCursesExit(); #endif - exit(0); + return 0; } /* end of main */ /* vi: set tabstop=4 shiftwidth=4: */