[Scummvm-cvs-logs] CVS: tools saga2mp3.c,1.3,1.4
Travis Howell
kirben at users.sourceforge.net
Tue Oct 12 17:42:20 CEST 2004
Update of /cvsroot/scummvm/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18154
Modified Files:
saga2mp3.c
Log Message:
Fix minor warnings
Index: saga2mp3.c
===================================================================
RCS file: /cvsroot/scummvm/tools/saga2mp3.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- saga2mp3.c 20 Sep 2004 03:07:47 -0000 1.3
+++ saga2mp3.c 13 Oct 2004 00:40:46 -0000 1.4
@@ -57,7 +57,7 @@
res_file = fopen(infile, "rb");
res_size = fileSize(res_file);
- printf("filesize: %lu\n", res_size);
+ printf("filesize: %ul\n", res_size);
/*
* At the end of the resource file there are 2 values: one points to the
* beginning of the resource table the other gives the number of
@@ -68,7 +68,7 @@
res_tbl_offset = readUint32LE(res_file);
res_tbl_ct = readUint32LE(res_file);
- printf("tabel offset: %lu\nnumber of records: %lu\n", res_tbl_offset, res_tbl_ct);
+ printf("tabel offset: %ul\nnumber of records: %ul\n", res_tbl_offset, res_tbl_ct);
if (res_tbl_offset != res_size - RSC_TABLEINFO_SIZE - RSC_TABLEENTRY_SIZE * res_tbl_ct) {
printf("Something's wrong with your resource file..\n");
@@ -87,7 +87,7 @@
table[t].offset = readUint32LE(res_file);
table[t].size = readUint32LE(res_file);
- printf("record: %lu, offset: %lu, size: %lu\n", t, table[t].offset, table[t].size);
+ printf("record: %ul, offset: %ul, size: %ul\n", t, table[t].offset, table[t].size);
if ((table[t].offset > res_size) ||
(table[t].size > res_size)) {
@@ -137,12 +137,12 @@
}
tempf = fopen(output, "rb");
outtable[t].offset = ftell(outputfile);
- printf("Offset: %lu, ", outtable[t].offset);
+ printf("Offset: %ul, ", outtable[t].offset);
while ((size = fread(fbuf, 1, 2048, tempf)) > 0) {
fwrite(fbuf, 1, size, outputfile);
}
outtable[t].size = ftell(tempf);
- printf("Size: %lu\n", outtable[t].size);
+ printf("Size: %ul\n", outtable[t].size);
fclose(tempf);
}
More information about the Scummvm-git-logs
mailing list