summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/sys/t_link.c
diff options
context:
space:
mode:
authorderaadt <>2021-12-13 16:56:48 +0000
committerderaadt <>2021-12-13 16:56:48 +0000
commit8d21fee22ec79324eef6e9a88c83bd6cf32315d6 (patch)
tree4d79dae357e2afe076d7157a01ff32c7b7546acc /src/regress/lib/libc/sys/t_link.c
parentff932a8c105e55b70f9248f6e57a9157c7969ef4 (diff)
downloadopenbsd-8d21fee22ec79324eef6e9a88c83bd6cf32315d6.tar.gz
openbsd-8d21fee22ec79324eef6e9a88c83bd6cf32315d6.tar.bz2
openbsd-8d21fee22ec79324eef6e9a88c83bd6cf32315d6.zip
remove a couple hundred sys/param.h includes in userland code, and
also whack some sys/cdefs.h early includes which is such a brutally bad pattern ok bluhm mbuhl
Diffstat (limited to 'src/regress/lib/libc/sys/t_link.c')
-rw-r--r--src/regress/lib/libc/sys/t_link.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/regress/lib/libc/sys/t_link.c b/src/regress/lib/libc/sys/t_link.c
index 291fd9cda4..12dbd8b595 100644
--- a/src/regress/lib/libc/sys/t_link.c
+++ b/src/regress/lib/libc/sys/t_link.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t_link.c,v 1.1.1.1 2019/11/19 19:57:03 bluhm Exp $ */ 1/* $OpenBSD: t_link.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */
2/* $NetBSD: t_link.c,v 1.3 2017/01/13 20:42:36 christos Exp $ */ 2/* $NetBSD: t_link.c,v 1.3 2017/01/13 20:42:36 christos Exp $ */
3 3
4/*- 4/*-
@@ -32,10 +32,6 @@
32 32
33#include "macros.h" 33#include "macros.h"
34 34
35#include <sys/cdefs.h>
36__RCSID("$NetBSD: t_link.c,v 1.3 2017/01/13 20:42:36 christos Exp $");
37
38#include <sys/param.h>
39#include <sys/stat.h> 35#include <sys/stat.h>
40 36
41#include "atf-c.h" 37#include "atf-c.h"
@@ -112,7 +108,7 @@ ATF_TC_HEAD(link_err, tc)
112 108
113ATF_TC_BODY(link_err, tc) 109ATF_TC_BODY(link_err, tc)
114{ 110{
115 char buf[MAXPATHLEN + 1]; 111 char buf[PATH_MAX + 1];
116 int fd; 112 int fd;
117 113
118 (void)memset(buf, 'x', sizeof(buf)); 114 (void)memset(buf, 'x', sizeof(buf));