From a46183e96042cf751199f0a06d437a599f7f5bf8 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Sun, 11 Aug 2019 08:46:24 +0100 Subject: replace cleanup() with exit() in usage() --- gramscii.c | 2 +- screen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gramscii.c b/gramscii.c index 8b84ec3..ba4d7e2 100644 --- a/gramscii.c +++ b/gramscii.c @@ -147,7 +147,7 @@ void commands(FILE *fc){ void usage(){ fprintf(stderr, "Usage: %s [-s] [-h] [file ...]\n", argv0); - cleanup(1); + exit(1); } diff --git a/screen.c b/screen.c index 5ea21aa..d60abb2 100644 --- a/screen.c +++ b/screen.c @@ -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