From ebe0c5761f8429750b4958c7d9e294dcdb1f0774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Thu, 10 Aug 2000 18:30:04 +0200 Subject: [PATCH] Fixed a few warnings. Rev: src/modules/Image/encodings/tga.c:1.20 --- src/modules/Image/encodings/tga.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/Image/encodings/tga.c b/src/modules/Image/encodings/tga.c index 423f62d5a5..ab6733c022 100644 --- a/src/modules/Image/encodings/tga.c +++ b/src/modules/Image/encodings/tga.c @@ -1,6 +1,6 @@ /* - * $Id: tga.c,v 1.19 2000/08/09 13:03:49 grubba Exp $ + * $Id: tga.c,v 1.20 2000/08/10 16:30:04 grubba Exp $ * * Targa codec for pike. Based on the tga plugin for gimp. * @@ -81,7 +81,7 @@ #include "module_magic.h" -RCSID("$Id: tga.c,v 1.19 2000/08/09 13:03:49 grubba Exp $"); +RCSID("$Id: tga.c,v 1.20 2000/08/10 16:30:04 grubba Exp $"); #ifndef MIN # define MIN(X,Y) ((X)<(Y)?(X):(Y)) @@ -490,7 +490,7 @@ static struct image_alpha ReadImage(struct buffer *fp, struct tga_header *hdr) unsigned char *cmap=NULL, *data; int itype=0; int really_no_alpha = 0; - ptrdiff_t (*myfread)(unsigned char *, int, int, struct buffer *); + ptrdiff_t (*myfread)(unsigned char *, size_t, size_t, struct buffer *); /* Find out whether the image is horizontally or vertically reversed. The GIMP likes things left-to-right, top-to-bottom. */ -- GitLab