diff --git a/main.c b/main.c index c006fc5..fcf4698 100644 --- a/main.c +++ b/main.c @@ -2516,7 +2516,6 @@ copy_fd_to_fd (int sfd, int dfd, char *buf, size_t buf_size) ret = TEMP_FAILURE_RETRY (write (dfd, buf + written, nread)); if (ret < 0) return ret; - written += ret; nread -= ret; } while (nread); @@ -2830,7 +2829,6 @@ empty_dirfd (int fd) static int empty_dir (struct ovl_layer *l, const char *path) { - cleanup_dir DIR *dp = NULL; cleanup_close int cleanup_fd = -1; int ret; diff --git a/utils.c b/utils.c index 7b92b9c..48ac146 100644 --- a/utils.c +++ b/utils.c @@ -94,8 +94,6 @@ strconcat3 (char *dest, size_t size, const char *s1, const char *s2, const char memcpy (current, s3, t); current += t; - - size -= t; } *current = '\0';