aboutsummaryrefslogtreecommitdiff
path: root/lib/liby/yyerror.c
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2018-06-16 23:50:34 +0000
committerEitan Adler <eadler@FreeBSD.org>2018-06-16 23:50:34 +0000
commit62a073130459875592b6efcd851bc1c53b002acf (patch)
tree3e14827308cd30d619d45a22bf6804c34073b57a /lib/liby/yyerror.c
parent8e22dda7a6fc3f7805ac3606ac3f8a4672558205 (diff)
downloadsrc-62a073130459875592b6efcd851bc1c53b002acf.tar.gz
src-62a073130459875592b6efcd851bc1c53b002acf.zip
liby: build with WARNS=6
Tested with amd64, arm64, i386, mips
Notes
Notes: svn path=/head/; revision=335270
Diffstat (limited to 'lib/liby/yyerror.c')
-rw-r--r--lib/liby/yyerror.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/liby/yyerror.c b/lib/liby/yyerror.c
index 122ce105fbe4..861ad5ad4c35 100644
--- a/lib/liby/yyerror.c
+++ b/lib/liby/yyerror.c
@@ -32,16 +32,18 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#ifndef lint
+#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)yyerror.c 8.1 (Berkeley) 6/4/93";
-#endif /* not lint */
+#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
+#include "yyerror.h"
+
int
-yyerror(msg)
-char *msg;
+yyerror(const char *msg)
{
- (void)fprintf(stderr, "%s\n", msg);
+
+ fprintf(stderr, "%s\n", msg);
return(0);
}