aboutsummaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-11-21 15:49:56 -0500
committerB. Watson <urchlay@slackware.uk>2025-11-21 15:49:56 -0500
commit23abb4764a4be094608a14a6637f08e8f3067a76 (patch)
treed82720f6a0c08660d64228d71aefa8147063b1e0 /src/io.c
parent61a771939849fd57b914727f29480b5b8c0dea7f (diff)
downloadunalf-23abb4764a4be094608a14a6637f08e8f3067a76.tar.gz
Add fatal: prefix to fatal error messages.
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/io.c b/src/io.c
index 9b664d4..4e20505 100644
--- a/src/io.c
+++ b/src/io.c
@@ -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;