diff options
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -95,7 +95,7 @@ char* normalize_path(char *s) { void rotdash(void) { static const char dashes[] = /* ".oOo"; */ "|/-\\"; - const static char *d = dashes; + static const char *d = dashes; if (!args.progress_flag) return; @@ -328,7 +328,7 @@ int copy_fd(int sfd, int dfd, off_t l) { n = loop_read(sfd, dp+(dfo-mdfo), m); munmap(dp, dm); - if (n != m) { + if (n != (ssize_t) m) { if (n < 0) fprintf(stderr, "read(): %s\n", strerror(errno)); @@ -368,7 +368,7 @@ int copy_fd(int sfd, int dfd, off_t l) { n = loop_write(dfd, sp+(sfo-msfo), m); munmap(sp, sm); - if (n != m) { + if (n != (ssize_t) m) { if (n < 0) fprintf(stderr, "write(): %s\n", strerror(errno)); |