npc(1): fix syntax errors
This commit is contained in:
parent
5545846c92
commit
7b930363bf
@ -25,7 +25,7 @@
|
|||||||
char *program_name = "npc";
|
char *program_name = "npc";
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ioerr(char *argv0, int err) {
|
ioerr(char *argv0) {
|
||||||
perror(argv0);
|
perror(argv0);
|
||||||
|
|
||||||
return EX_IOERR;
|
return EX_IOERR;
|
||||||
@ -68,7 +68,7 @@ int main(int argc, char *argv[]) {
|
|||||||
break;
|
break;
|
||||||
case '\n':
|
case '\n':
|
||||||
if (showend && fputc('$', stdout) == EOF) {
|
if (showend && fputc('$', stdout) == EOF) {
|
||||||
return ioerr(argv[0]); }
|
return ioerr(argv[0]);
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
if (c >= ' ' || c == '\n' || (!showtab && c == '\t')) {
|
if (c >= ' ' || c == '\n' || (!showtab && c == '\t')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user