fix prorotypes and kill warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8466 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
13
lib/sl/lex.l
13
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).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -38,8 +38,11 @@
|
|||||||
RCSID("$Id$");
|
RCSID("$Id$");
|
||||||
|
|
||||||
static unsigned lineno = 1;
|
static unsigned lineno = 1;
|
||||||
void error_message(char *, ...);
|
static int getstring(void);
|
||||||
int getstring(void);
|
|
||||||
|
#define YY_NO_UNPUT
|
||||||
|
|
||||||
|
#undef ECHO
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
@@ -66,7 +69,7 @@ yywrap ()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
static int
|
||||||
getstring(void)
|
getstring(void)
|
||||||
{
|
{
|
||||||
char x[128];
|
char x[128];
|
||||||
@@ -102,7 +105,7 @@ getstring(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
error_message (char *format, ...)
|
error_message (const char *format, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user