summaryrefslogtreecommitdiff
path: root/src/pr.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2009-01-15 17:32:31 +0000
committerPádraig Brady <P@draigBrady.com>2009-01-16 11:06:09 +0000
commit3288ebb0d70cd8140f947a7aa3a83ab0e904f624 (patch)
tree50808647c39cd2bfaf8ad4e4d6b71846000da32a /src/pr.c
parent9934f5028228ac761e545ed46992cfed633f46af (diff)
downloadcoreutils-3288ebb0d70cd8140f947a7aa3a83ab0e904f624.tar.xz
pr: avoid -Wsign-compare warnings
* src/pr.c: Use unsigned variables in unsigned comparisons.
Diffstat (limited to 'src/pr.c')
-rw-r--r--src/pr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pr.c b/src/pr.c
index d2b6714e0..308a02570 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -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;