aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>1996-11-16 18:14:23 -0200
committerLuiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>1996-11-16 18:14:23 -0200
commit62aa717f7eb522e7674b01720ec3ba73f84ccb07 (patch)
treede24b49667e17b52489f14d2f80edf1c3672f367
parenta5614eae3c4cddb055f06a6918172bb6bce7c702 (diff)
downloadlua-62aa717f7eb522e7674b01720ec3ba73f84ccb07.tar.gz
lua-62aa717f7eb522e7674b01720ec3ba73f84ccb07.tar.bz2
lua-62aa717f7eb522e7674b01720ec3ba73f84ccb07.zip
stdlib.h for exit
blocks are void*
-rw-r--r--undump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/undump.c b/undump.c
index 28c4ab7e..e32ec4e5 100644
--- a/undump.c
+++ b/undump.c
@@ -3,7 +3,7 @@
3** load bytecodes from files 3** load bytecodes from files
4*/ 4*/
5 5
6char* rcs_undump="$Id: undump.c,v 1.18 1996/11/14 13:33:15 lhf Exp lhf $"; 6char* rcs_undump="$Id: undump.c,v 1.19 1996/11/14 15:00:32 lhf Exp lhf $";
7 7
8#include <stdio.h> 8#include <stdio.h>
9#include <string.h> 9#include <string.h>
@@ -172,9 +172,9 @@ static int LoadSize(FILE* D)
172 return s; 172 return s;
173} 173}
174 174
175static char* LoadBlock(int size, FILE* D) 175static void* LoadBlock(int size, FILE* D)
176{ 176{
177 char* b=luaI_malloc(size); 177 void* b=luaI_malloc(size);
178 fread(b,size,1,D); 178 fread(b,size,1,D);
179 return b; 179 return b;
180} 180}