summaryrefslogtreecommitdiff
path: root/regress/lib/libc/popen
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2021-12-13 16:56:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2021-12-13 16:56:51 +0000
commita02bd508e1de79feadc042a6a602194d97f70dab (patch)
tree81ef7c621045b36a4c34f46ab1652c0f97a80c23 /regress/lib/libc/popen
parentba1590a4b017c07576ce93524f047637c9acbcea (diff)
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 'regress/lib/libc/popen')
-rw-r--r--regress/lib/libc/popen/popen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libc/popen/popen.c b/regress/lib/libc/popen/popen.c
index 916cb71b037..2e081de5842 100644
--- a/regress/lib/libc/popen/popen.c
+++ b/regress/lib/libc/popen/popen.c
@@ -29,13 +29,13 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include <sys/param.h>
#include <err.h>
#include <errno.h>
#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
+#include <limits.h>
#include <time.h>
#include <unistd.h>
@@ -47,7 +47,7 @@
int
main(int argc, char **argv)
{
- char *buffer, command[MAXPATHLEN];
+ char *buffer, command[PATH_MAX];
int index, in;
FILE *pipe;