diff options
author | Mattias Andrée <maandree@kth.se> | 2021-09-04 11:43:51 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-09-04 11:43:51 +0200 |
commit | de1f09554650ff4f22ff4d6e0ab222a7d08525c8 (patch) | |
tree | 73df3157dc5a967a3ddfd87cd02362580492f592 /common.c | |
parent | Use MSG_PEEK instead of sending unnecessary data (diff) | |
download | editasroot-de1f09554650ff4f22ff4d6e0ab222a7d08525c8.tar.gz editasroot-de1f09554650ff4f22ff4d6e0ab222a7d08525c8.tar.bz2 editasroot-de1f09554650ff4f22ff4d6e0ab222a7d08525c8.tar.xz |
Add missing newline to end of error prints
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -24,7 +24,7 @@ copy_file(int destfd, const char *destfname, int srcfd, const char *srcfname, in if (r <= 0) { if (!r) break; - fprintf(stderr, "%s: read %s: %s", argv0, srcfname, strerror(errno)); + fprintf(stderr, "%s: read %s: %s\n", argv0, srcfname, strerror(errno)); exit(1); } @@ -37,7 +37,7 @@ copy_file(int destfd, const char *destfname, int srcfd, const char *srcfname, in for (p = ok_off; p < r; p += w) { w = write(destfd, buf, (size_t)(r - p)); if (r <= 0) { - fprintf(stderr, "%s: write %s: %s", argv0, destfname, strerror(errno)); + fprintf(stderr, "%s: write %s: %s\n", argv0, destfname, strerror(errno)); exit(1); } } @@ -46,7 +46,7 @@ copy_file(int destfd, const char *destfname, int srcfd, const char *srcfname, in if (!okp) { w = write(destfd, buf, 1); if (r <= 0) { - fprintf(stderr, "%s: write %s: %s", argv0, destfname, strerror(errno)); + fprintf(stderr, "%s: write %s: %s\n", argv0, destfname, strerror(errno)); exit(1); } } |