summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/popen
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/popen
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/popen')
-rw-r--r--src/regress/lib/libc/popen/popen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libc/popen/popen.c b/src/regress/lib/libc/popen/popen.c
index 916cb71b03..2e081de584 100644
--- a/src/regress/lib/libc/popen/popen.c
+++ b/src/regress/lib/libc/popen/popen.c
@@ -29,13 +29,13 @@
29 * POSSIBILITY OF SUCH DAMAGE. 29 * POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32#include <sys/param.h>
33 32
34#include <err.h> 33#include <err.h>
35#include <errno.h> 34#include <errno.h>
36#include <paths.h> 35#include <paths.h>
37#include <stdio.h> 36#include <stdio.h>
38#include <stdlib.h> 37#include <stdlib.h>
38#include <limits.h>
39#include <time.h> 39#include <time.h>
40#include <unistd.h> 40#include <unistd.h>
41 41
@@ -47,7 +47,7 @@
47int 47int
48main(int argc, char **argv) 48main(int argc, char **argv)
49{ 49{
50 char *buffer, command[MAXPATHLEN]; 50 char *buffer, command[PATH_MAX];
51 int index, in; 51 int index, in;
52 FILE *pipe; 52 FILE *pipe;
53 53