From 8d21fee22ec79324eef6e9a88c83bd6cf32315d6 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Mon, 13 Dec 2021 16:56:48 +0000 Subject: 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 --- src/regress/lib/libc/sys/t_link.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/regress/lib/libc/sys/t_link.c') 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 @@ -/* $OpenBSD: t_link.c,v 1.1.1.1 2019/11/19 19:57:03 bluhm Exp $ */ +/* $OpenBSD: t_link.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ /* $NetBSD: t_link.c,v 1.3 2017/01/13 20:42:36 christos Exp $ */ /*- @@ -32,10 +32,6 @@ #include "macros.h" -#include -__RCSID("$NetBSD: t_link.c,v 1.3 2017/01/13 20:42:36 christos Exp $"); - -#include #include #include "atf-c.h" @@ -112,7 +108,7 @@ ATF_TC_HEAD(link_err, tc) ATF_TC_BODY(link_err, tc) { - char buf[MAXPATHLEN + 1]; + char buf[PATH_MAX + 1]; int fd; (void)memset(buf, 'x', sizeof(buf)); -- cgit v1.2.3-55-g6feb