diff options
author | Pixel <pixel@nobis-crew.org> | 2009-02-17 02:28:26 +0100 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-02-17 02:28:26 +0100 |
commit | ffe1fca0cc4cac3213c048933314f4f4057e5991 (patch) | |
tree | a54aec864dda9a3bda649c6359d9227462dbbf84 /mpq-fs.c | |
parent | 2661812e3fc3f7385a5f8343172afc173f594efe (diff) |
Fixing various warning / errors.
Diffstat (limited to 'mpq-fs.c')
-rw-r--r-- | mpq-fs.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -129,6 +129,9 @@ struct mpq_file_t * mpqlib_fs_open(const char * _fname) { return NULL; } +#define FALSE 0 +#define TRUE !FALSE + int mpqlib_fs_filelist(char * buffer) { int r_size = 0, l; char * p = buffer; @@ -137,10 +140,10 @@ int mpqlib_fs_filelist(char * buffer) { return 0; if (hfirst(hash_table)) do { - l = strlen(hkey(hash_table)); + l = strlen((char *)hkey(hash_table)); r_size += l + 1; if (p) { - strcpy(p, hkey(hash_table)); + strcpy(p, (char *)hkey(hash_table)); p += l; *(p++) = '\n'; } @@ -149,9 +152,6 @@ int mpqlib_fs_filelist(char * buffer) { return r_size; } -#define FALSE 0 -#define TRUE !FALSE - void mpqlib_fs_shutdown() { if (!hash_table) return; |