From: Jim Meyering Date: Sat, 23 Nov 2002 16:28:44 +0000 (+0000) Subject: (output): Declare some local variables to be of type size_t, X-Git-Tag: COREUTILS-4_5_4~146 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6533eac241dacabe000e101abb13b8b3d6e671da;p=platform%2Fupstream%2Fcoreutils.git (output): Declare some local variables to be of type size_t, rather than `int' to avoid warnings from gcc. --- diff --git a/src/tac.c b/src/tac.c index 3b4df0635..c7d9e258d 100644 --- a/src/tac.c +++ b/src/tac.c @@ -155,9 +155,9 @@ static void output (const char *start, const char *past_end) { static char buffer[WRITESIZE]; - static int bytes_in_buffer = 0; - int bytes_to_add = past_end - start; - int bytes_available = WRITESIZE - bytes_in_buffer; + static size_t bytes_in_buffer = 0; + size_t bytes_to_add = past_end - start; + size_t bytes_available = WRITESIZE - bytes_in_buffer; if (start == 0) {