diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-11-21 15:49:56 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-11-21 15:49:56 -0500 |
| commit | 23abb4764a4be094608a14a6637f08e8f3067a76 (patch) | |
| tree | d82720f6a0c08660d64228d71aefa8147063b1e0 /src/io.c | |
| parent | 61a771939849fd57b914727f29480b5b8c0dea7f (diff) | |
| download | unalf-23abb4764a4be094608a14a6637f08e8f3067a76.tar.gz | |
Add fatal: prefix to fatal error messages.
Diffstat (limited to 'src/io.c')
| -rw-r--r-- | src/io.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -5,12 +5,12 @@ static int headers_read = 0; static int convert_eols = 0; static void die_arc(void) { - fprintf(stderr, "%s: this is an ARC file, not ALF\n", self); + fprintf(stderr, "%s: fatal: this is an ARC file, not ALF\n", self); exit(1); } static void die_not_alf(void) { - fprintf(stderr, "%s: not an ALF file\n", self); + fprintf(stderr, "%s: fatal: not an ALF file\n", self); exit(1); } @@ -143,7 +143,8 @@ void writeblock(void) { bytes = fwrite(buf, 1, len, out_file); if(bytes < 0) { - perror(self); /* TODO: out_filename */ + fprintf(stderr, "%s: fatal: ", self); + perror("write failed"); /* TODO: out_filename */ exit(1); } bytes_written += bytes; |
