Wed, 16 Apr 2014 14:25:38 +0200
cross-win32: fix remaining warnings
| pidgin/win32/gtkwin32dep.c | file | annotate | diff | comparison | revisions | |
| pidgin/win32/untar.c | file | annotate | diff | comparison | revisions |
--- a/pidgin/win32/gtkwin32dep.c Wed Apr 16 02:58:32 2014 +0200 +++ b/pidgin/win32/gtkwin32dep.c Wed Apr 16 14:25:38 2014 +0200 @@ -101,7 +101,7 @@ } 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);
--- a/pidgin/win32/untar.c Wed Apr 16 02:58:32 2014 +0200 +++ b/pidgin/win32/untar.c Wed Apr 16 14:25:38 2014 +0200 @@ -123,7 +123,7 @@ 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 @@ 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 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