From 3c9d999424520c809e05bee11d81788b488434f6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 3 Mar 2000 11:58:26 -0300 Subject: many details (most by lhf). --- lzio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lzio.c') diff --git a/lzio.c b/lzio.c index 48269ca7..7a05dba4 100644 --- a/lzio.c +++ b/lzio.c @@ -1,5 +1,5 @@ /* -** $Id: lzio.c,v 1.9 1999/11/09 17:59:35 roberto Exp roberto $ +** $Id: lzio.c,v 1.10 2000/02/08 16:39:42 roberto Exp roberto $ ** a generic input stream interface ** See Copyright Notice in lua.h */ @@ -24,7 +24,7 @@ static int zmfilbuf (ZIO* z) { ZIO* zmopen (ZIO* z, const char* b, int size, const char *name) { if (b==NULL) return NULL; z->n = size; - z->p = (unsigned const char *)b; + z->p = (const unsigned char *)b; z->filbuf = zmfilbuf; z->u = NULL; z->name = name; @@ -69,7 +69,7 @@ int zread (ZIO *z, void *b, int n) { if (z->n == 0) { if (z->filbuf(z) == EOZ) return n; /* return number of missing bytes */ - zungetc(z); /* put result from 'filbuf' in the buffer */ + zungetc(z); /* put result from `filbuf' in the buffer */ } m = (n <= z->n) ? n : z->n; /* min. between n and z->n */ memcpy(b, z->p, m); -- cgit v1.2.3-55-g6feb