1
0
This commit is contained in:
dtb 2023-12-19 01:12:27 -07:00
parent 145071d309
commit e0ccb05777

View File

@ -5,8 +5,6 @@
# include <sysexits.h>
#endif
static char *program_name = "npc";
int main(int argc, char *argv[]){
int c;
char showend;
@ -23,10 +21,8 @@ int main(int argc, char *argv[]){
default: goto usage;
}
if(optind > argc){
usage: fprintf(stderr,
"Usage: %s (-eht)\n",
argv[0] == NULL ? program_name : argv[0]);
if(argc > optind){
usage: fprintf(stderr, "Usage: %s (-eht)\n", argv[0]);
return EX_USAGE;
}