aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2003-10-01 10:58:55 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-10-01 10:58:55 -0700
commit1f6fcc21f5c0e6a50228b104586b22880c7e1ddb (patch)
tree116011e86a6c15cf629bb7ece3bb11941c18e55a /scripts
parentd5f1f9dd5f3c03cc2b9398354fc3c8f6355fd9cc (diff)
downloadhistory-1f6fcc21f5c0e6a50228b104586b22880c7e1ddb.tar.gz
[PATCH] scripts/pnmtologo.c warning fixes
From: Rolf Eike Beer <eike-kernel@sf-tec.de> this patch makes some ints to unsigned ints. They are only used as loop counters and compared to unsigned ints. GCC 3.3 doesn't like this. They will never be negative anyway, so we could easily shut him up.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/pnmtologo.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/pnmtologo.c b/scripts/pnmtologo.c
index 953f6939af4e14..6aa2a2483f8df0 100644
--- a/scripts/pnmtologo.c
+++ b/scripts/pnmtologo.c
@@ -119,7 +119,8 @@ static unsigned int get_number255(FILE *fp, unsigned int maxval)
static void read_image(void)
{
FILE *fp;
- int i, j, magic;
+ unsigned int i, j;
+ int magic;
unsigned int maxval;
/* open image file */
@@ -274,7 +275,7 @@ static void write_hex(unsigned char byte)
static void write_logo_mono(void)
{
- int i, j;
+ unsigned int i, j;
unsigned char val, bit;
/* validate image */
@@ -302,7 +303,7 @@ static void write_logo_mono(void)
static void write_logo_vga16(void)
{
- int i, j, k;
+ unsigned int i, j, k;
unsigned char val;
/* validate image */
@@ -342,7 +343,7 @@ static void write_logo_vga16(void)
static void write_logo_clut224(void)
{
- int i, j, k;
+ unsigned int i, j, k;
/* validate image */
for (i = 0; i < logo_height; i++)
@@ -388,7 +389,7 @@ static void write_logo_clut224(void)
static void write_logo_gray256(void)
{
- int i, j;
+ unsigned int i, j;
/* validate image */
for (i = 0; i < logo_height; i++)