diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-09 21:17:12 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-09 21:17:12 +0100 |
| commit | b5cd18739a64c8d923a55b61c89ae3900faafd84 (patch) | |
| tree | d192f7b25257ae9a8a4760c68f5314dcbc0d9b91 /lib/libc/unistd/getopt.c | |
| parent | 119aed5bc787ccbf23d2f151759ec1f3a80977e1 (diff) | |
Fix include paths and formatting inconsistencies
Diffstat (limited to 'lib/libc/unistd/getopt.c')
| -rw-r--r-- | lib/libc/unistd/getopt.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/unistd/getopt.c b/lib/libc/unistd/getopt.c index 8ef18d37..0a3b38cb 100644 --- a/lib/libc/unistd/getopt.c +++ b/lib/libc/unistd/getopt.c @@ -1,7 +1,6 @@ -#include <unistd.h> -#include <stdio.h> -#include <string.h> -#include <sys/uio.h> +#include <string.h> // for strlen +#include <sys/uio.h> // for iovec, writev +#include <unistd.h> // for STDERR_FILENO, getopt, optarg, opterr, optind char *optarg; int optind = 1, opterr = 1, optopt; |
