/pidgin/main: ec92c3bfaf27: cross-win32: fix remaining warnings

Tomasz Wasilczyk twasilczyk at pidgin.im
Wed Apr 16 08:25:46 EDT 2014


Changeset: ec92c3bfaf275af620633bd41350d31a0f808a6f
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-04-16 14:25 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/ec92c3bfaf27

Description:

cross-win32: fix remaining warnings

diffstat:

 pidgin/win32/gtkwin32dep.c |  2 +-
 pidgin/win32/untar.c       |  6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (42 lines):

diff --git a/pidgin/win32/gtkwin32dep.c b/pidgin/win32/gtkwin32dep.c
--- a/pidgin/win32/gtkwin32dep.c
+++ b/pidgin/win32/gtkwin32dep.c
@@ -101,7 +101,7 @@ int winpidgin_gz_decompress(const char* 
 	}
 
 	while((ret = gzread(fin, buf, 1024))) {
-		if(fwrite(buf, 1, ret, fout) < ret) {
+		if ((int)fwrite(buf, 1, ret, fout) < ret) {
 			purple_debug_error("wpurple_gz_decompress", "Error writing %d bytes to file\n", ret);
 			gzclose(fin);
 			fclose(fout);
diff --git a/pidgin/win32/untar.c b/pidgin/win32/untar.c
--- a/pidgin/win32/untar.c
+++ b/pidgin/win32/untar.c
@@ -123,7 +123,7 @@ static FILE	  *infp    = NULL;      /* i
 static FILE	  *outfp   = NULL;      /* output stream, for file currently being extracted */
 static Ulong_t	  outsize  = 0;         /* number of bytes remainin in file currently being extracted */
 static char	  **only   = NULL;      /* array of filenames to extract/list */
-static int	  nonlys   = 0;	        /* number of filenames in "only" array; 0=extract all */
+static guint nonlys = 0;                /* number of filenames in "only" array; 0=extract all */
 static int	  didabs   = 0;	        /* were any filenames affected by the absence of -p? */
 
 static untar_opt untarops = 0;          /* Untar options */
@@ -257,7 +257,7 @@ static void cvtwrite(blk, size, fp)
 	Ulong_t	size;	/* number of characters to be written */
 	FILE	*fp;	/* file to write to */
 {
-	int	i, j;
+	Ulong_t i, j;
 	static Uchar_t mod[TSIZE];
 
 	if (CONVERT)
@@ -327,7 +327,7 @@ static int untar_block(Uchar_t *blk) {
 	static char	*name,*n2;/* prefix and name, combined */
 	static int	first = 1;/* Boolean: first block of archive? */
 	long		sum;	  /* checksum for this block */
-	int		i;
+	guint		i;
 	tar_t		tblk[1];
 
 #ifdef _POSIX_SOURCE



More information about the Commits mailing list