diff options
author | Pádraig Brady <P@draigBrady.com> | 2009-01-15 17:32:31 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2009-01-16 11:06:09 +0000 |
commit | 3288ebb0d70cd8140f947a7aa3a83ab0e904f624 (patch) | |
tree | 50808647c39cd2bfaf8ad4e4d6b71846000da32a /src | |
parent | 9934f5028228ac761e545ed46992cfed633f46af (diff) | |
download | coreutils-3288ebb0d70cd8140f947a7aa3a83ab0e904f624.tar.xz |
pr: avoid -Wsign-compare warnings
* src/pr.c: Use unsigned variables in unsigned comparisons.
Diffstat (limited to 'src')
-rw-r--r-- | src/pr.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ /* pr -- convert text files for printing. - Copyright (C) 88, 91, 1995-2008 Free Software Foundation, Inc. + Copyright (C) 88, 91, 1995-2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -455,7 +455,7 @@ static char *buff; /* Index of the position in buff where the next character will be stored. */ -static int buff_current; +static unsigned int buff_current; /* The number of characters in buff. Used for allocation of buff and to detect overflow of buff. */ @@ -1944,8 +1944,8 @@ static void store_columns (void) { int i, j; - int line = 0; - int buff_start; + unsigned int line = 0; + unsigned int buff_start; int last_col; /* The rightmost column which will be saved in buff */ COLUMN *p; |