fixed gcc4 warnings

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8028 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2005-11-21 16:08:36 +00:00
parent 0906aa7183
commit b61d62b225
2 changed files with 4 additions and 3 deletions

View file

@ -19,6 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define CHAR_WIDTH 8
#define CHAR_HEIGHT 8

View file

@ -41,8 +41,8 @@ int main (int argc, char* argv[]) {
char checksum = '\0';
unsigned long length, i;
unsigned char* inbuf;
unsigned char* iname = argv[1];
unsigned char* oname = argv[2];
char* iname = argv[1];
char* oname = argv[2];
FILE* pFile;
if (argc < 2) {
@ -50,7 +50,7 @@ int main (int argc, char* argv[]) {
}
/* open file */
pFile = fopen(iname,"rb");
pFile = fopen(iname, "rb");
if (!pFile) {
perror(oname);
return -1;