dj(1): clean up some stray ends

This commit is contained in:
dtb 2024-07-03 18:44:42 -06:00
parent adda0d9580
commit 3e1735f778
Signed by: trinity
GPG Key ID: 34C0543BBB6AF81B

View File

@ -22,7 +22,7 @@
#include <stdio.h> /* fprintf(3), stderr */
#include <stdlib.h> /* malloc(3), strtol(3), size_t */
#include <string.h> /* memcpy(3), memmove(3), memset(3) */
#include <sysexits.h> /* EX_OK, EX_USAGE */
#include <sysexits.h> /* EX_OK, EX_OSERR, EX_USAGE */
#include <unistd.h> /* close(2), getopt(3), lseek(2), read(2), write(2),
* optarg, optind, STDIN_FILENO, STDOUT_FILENO */
#include <sys/stat.h> /* S_IRGRP, S_IROTH, S_IRUSR, S_IWGRP, S_IWOTH,
@ -246,9 +246,8 @@ int main(int argc, char *argv[]){
assert(io->fd != STDIN_FILENO || io->fl == read_flags);
assert(io->fd != STDOUT_FILENO || io->fl == write_flags);
if(argc > optind){
if(argc > optind)
return usage(program_name);
}
for(i = 0; i < 2; ++i){
/* buffer allocation */