summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-03-14 16:42:02 +0000
committerVincent Sanders <vince@netsurf-browser.org>2012-03-14 16:42:02 +0000
commitc0b0dbd373b3aaf6fa48594f05c5752be9519fbb (patch)
tree94d116fbc728510951b40f1db5d04adb08c824e1
parent2e65e51fc5ad3042201988d49ba061a781b70351 (diff)
downloadnetsurf-c0b0dbd373b3aaf6fa48594f05c5752be9519fbb.tar.gz
netsurf-c0b0dbd373b3aaf6fa48594f05c5752be9519fbb.tar.bz2
fix incorrect type in message loading
zlib has changed typedef voidp gzFile; to typedef struct gzFile_s *gzFile; historically the gzFile *fp has efectively expanded to void**fp The compiler considerd void ** to be identical to void* as void cannot be dereferenced and compilation suceeded. With a concrete type it does not work. svn path=/trunk/netsurf/; revision=13517
-rw-r--r--utils/messages.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/messages.c b/utils/messages.c
index 6ad17c3dd..5b62912a6 100644
--- a/utils/messages.c
+++ b/utils/messages.c
@@ -54,7 +54,7 @@ static struct hash_table *messages_hash = NULL;
struct hash_table *messages_load_ctx(const char *path, struct hash_table *ctx)
{
char s[400];
- gzFile *fp;
+ gzFile fp;
assert(path != NULL);