From ce916c4db5f0164b7324218510da0dd1dfb48627 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Sat, 25 May 2019 14:05:23 -0500 Subject: bin/test: make buildable with libbsd --- bin/test/test.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'bin') diff --git a/bin/test/test.c b/bin/test/test.c index 8cf9dab..cad61e6 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -10,13 +10,9 @@ * This program is in the Public Domain. */ -#include -#ifndef lint -__RCSID("$NetBSD: test.c,v 1.43 2018/09/13 22:00:58 kre Exp $"); -#endif - #include #include +#include #include #include @@ -25,6 +21,7 @@ __RCSID("$NetBSD: test.c,v 1.43 2018/09/13 22:00:58 kre Exp $"); #include #include #include +#include #include #include #include @@ -168,7 +165,7 @@ static struct t_op const *t_wp_op; #endif #ifndef SMALL -__dead static void syntax(const char *, const char *); +static void syntax(const char *, const char *); static int oexpr(enum token); static int aexpr(enum token); static int nexpr(enum token); @@ -193,10 +190,10 @@ static int three_arg(const char *, const char *, const char *); static int four_arg(const char *, const char *, const char *, const char *); #if defined(SHELL) -extern void error(const char *, ...) __dead __printflike(1, 2); +extern void error(const char *, ...) __printflike(1, 2); extern void *ckmalloc(size_t); #else -static void error(const char *, ...) __dead __printflike(1, 2); +static void error(const char *, ...); static void error(const char *msg, ...) -- cgit v1.2.3-70-g09d2