From: Jim Meyering Date: Fri, 25 Apr 2003 07:46:43 +0000 (+0000) Subject: (copy_file_preserving): Declare buf_size to be of type size_t, not int. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cb984dac2d2acc60cfbde042c72b9dcafd40177;p=pspp (copy_file_preserving): Declare buf_size to be of type size_t, not int. --- diff --git a/lib/copy-file.c b/lib/copy-file.c index 7de2ca63d8..41191d21a0 100644 --- a/lib/copy-file.c +++ b/lib/copy-file.c @@ -57,7 +57,7 @@ copy_file_preserving (const char *src_filename, const char *dest_filename) int mode; int dest_fd; char buf[4096]; - const int buf_size = sizeof (buf); + const size_t buf_size = sizeof (buf); src_fd = open (src_filename, O_RDONLY | O_BINARY); if (src_fd < 0 || fstat (src_fd, &statbuf) < 0)