diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-08-11 08:46:24 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-08-11 08:46:24 +0100 |
commit | a46183e96042cf751199f0a06d437a599f7f5bf8 (patch) | |
tree | 06a8689f54a56f248c9511ef701614d2d871eec0 | |
parent | e4c527b0f07b91fb3cd9ba58ba057dfea9da9356 (diff) |
replace cleanup() with exit() in usage()
-rw-r--r-- | gramscii.c | 2 | ||||
-rw-r--r-- | screen.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -147,7 +147,7 @@ void commands(FILE *fc){ void usage(){ fprintf(stderr, "Usage: %s [-s] [-h] [file ...]\n", argv0); - cleanup(1); + exit(1); } @@ -421,7 +421,7 @@ void init_screen(){ screen.sz = HEIGHT; screen.num = HEIGHT; if (screen.l == NULL){ - perror("allocating screen"); + fprintf(stderr, "Error allocating screen"); cleanup(1); } for (i=0; i<HEIGHT; i++){ |