dj(1): lists sysexits imports, fixes negation

This commit is contained in:
Emma Tebibyte 2024-07-13 16:56:56 -06:00
parent 99f2b2963a
commit 1dfad87e87
Signed by untrusted user: emma
GPG Key ID: 06FA419A1698C270

View File

@ -23,7 +23,7 @@
#include <stdio.h> /* fprintf(3), stderr */ #include <stdio.h> /* fprintf(3), stderr */
#include <stdlib.h> /* malloc(3), strtol(3), size_t */ #include <stdlib.h> /* malloc(3), strtol(3), size_t */
#include <string.h> /* memcpy(3), memmove(3), memset(3) */ #include <string.h> /* memcpy(3), memmove(3), memset(3) */
#include <sysexits.h> #include <sysexits.h> /* EX_OK, EX_OSERR, EX_USAGE */
#include <unistd.h> /* close(2), getopt(3), lseek(2), read(2), write(2), #include <unistd.h> /* close(2), getopt(3), lseek(2), read(2), write(2),
* optarg, optind, STDIN_FILENO, STDOUT_FILENO */ * optarg, optind, STDIN_FILENO, STDOUT_FILENO */
#include <sys/stat.h> /* S_IRGRP, S_IROTH, S_IRUSR, S_IWGRP, S_IWOTH, S_IWUSR */ #include <sys/stat.h> /* S_IRGRP, S_IROTH, S_IRUSR, S_IWGRP, S_IWOTH, S_IWUSR */
@ -176,7 +176,7 @@ int main(int argc, char *argv[]) {
io[i].seek = 0; io[i].seek = 0;
} }
if (!argc < 0) { usage(program_name); } if (!(argc < 0)) { usage(program_name); }
int c; int c;