summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-05-25 14:05:23 -0500
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-05-25 14:05:23 -0500
commitce916c4db5f0164b7324218510da0dd1dfb48627 (patch)
tree0949885b7cb4bc065c88ef07c1cbac99677ee17b /bin
parentb9ed9a2c260864ebcf5b5ccaed6b765760310262 (diff)
downloaduserland-ce916c4db5f0164b7324218510da0dd1dfb48627.tar.gz
userland-ce916c4db5f0164b7324218510da0dd1dfb48627.tar.bz2
userland-ce916c4db5f0164b7324218510da0dd1dfb48627.tar.xz
userland-ce916c4db5f0164b7324218510da0dd1dfb48627.zip
bin/test: make buildable with libbsd
Diffstat (limited to 'bin')
-rw-r--r--bin/test/test.c13
1 files changed, 5 insertions, 8 deletions
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 <sys/cdefs.h>
-#ifndef lint
-__RCSID("$NetBSD: test.c,v 1.43 2018/09/13 22:00:58 kre Exp $");
-#endif
-
#include <sys/stat.h>
#include <sys/types.h>
+#include <bsd/sys/time.h>
#include <ctype.h>
#include <err.h>
@@ -25,6 +21,7 @@ __RCSID("$NetBSD: test.c,v 1.43 2018/09/13 22:00:58 kre Exp $");
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
+#include <bsd/stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
@@ -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, ...)