diff --git a/bin/mv/mv.c b/bin/mv/mv.c --- a/bin/mv/mv.c +++ b/bin/mv/mv.c @@ -265,7 +265,8 @@ static u_int blen = MAXPHYS; static char *bp = NULL; mode_t oldmode; - int nread, from_fd, to_fd; + ssize_t nread; + int from_fd, to_fd; struct stat tsb; if ((from_fd = open(from, O_RDONLY, 0)) < 0) {