From cc27462de4a568b8b1309f92634a93c953d13dd5 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Tue, 27 Jun 2000 02:36:28 +0000 Subject: [PATCH] fix prorotypes and kill warnings git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8466 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/sl/lex.l | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/sl/lex.l b/lib/sl/lex.l index 9104de1d1..4a3896f0a 100644 --- a/lib/sl/lex.l +++ b/lib/sl/lex.l @@ -1,6 +1,6 @@ %{ /* - * Copyright (c) 1998 Kungliga Tekniska Högskolan + * Copyright (c) 1998 - 2000 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -38,8 +38,11 @@ RCSID("$Id$"); static unsigned lineno = 1; -void error_message(char *, ...); -int getstring(void); +static int getstring(void); + +#define YY_NO_UNPUT + +#undef ECHO %} @@ -66,7 +69,7 @@ yywrap () } #endif -int +static int getstring(void) { char x[128]; @@ -102,7 +105,7 @@ getstring(void) } void -error_message (char *format, ...) +error_message (const char *format, ...) { va_list args;