diff options
| author | deraadt <> | 2021-12-13 16:56:48 +0000 |
|---|---|---|
| committer | deraadt <> | 2021-12-13 16:56:48 +0000 |
| commit | 9021d14f9c0c87cbe273ab6f4fe8e4f48363f4f6 (patch) | |
| tree | 4d79dae357e2afe076d7157a01ff32c7b7546acc /src/regress/lib/libc/popen | |
| parent | 29eb1fc4c6f8014bf067b8a9ade4cf476193f0d5 (diff) | |
| download | openbsd-9021d14f9c0c87cbe273ab6f4fe8e4f48363f4f6.tar.gz openbsd-9021d14f9c0c87cbe273ab6f4fe8e4f48363f4f6.tar.bz2 openbsd-9021d14f9c0c87cbe273ab6f4fe8e4f48363f4f6.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.c | 4 |
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 @@ | |||
| 47 | int | 47 | int |
| 48 | main(int argc, char **argv) | 48 | main(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 | ||
