From f3f565db6c16cf15f9e99027161cd38fd749ae39 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 20 Jun 2020 17:19:38 -0700 Subject: rmd_cache: silence compiler warnings about gzFile zlib typedefs gzFile to already be a pointer to the struct, so these shouldn't have two pointers on the fp, one comes with the type. --- recordmydesktop/src/rmd_load_cache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'recordmydesktop/src/rmd_load_cache.c') diff --git a/recordmydesktop/src/rmd_load_cache.c b/recordmydesktop/src/rmd_load_cache.c index 089121c..611195a 100644 --- a/recordmydesktop/src/rmd_load_cache.c +++ b/recordmydesktop/src/rmd_load_cache.c @@ -83,7 +83,7 @@ static void rmdLoadBlock(unsigned char *dest, } //returns number of bytes -static int rmdReadZF(void * buffer, size_t size, size_t nmemb, FILE *ucfp, gzFile *ifp) { +static int rmdReadZF(void * buffer, size_t size, size_t nmemb, FILE *ucfp, gzFile ifp) { if ((ifp!=NULL && ucfp!=NULL)|| (ifp==NULL && ucfp==NULL)) return -1; @@ -93,7 +93,7 @@ static int rmdReadZF(void * buffer, size_t size, size_t nmemb, FILE *ucfp, gzFil return gzread(ifp,buffer,size*nmemb); } -static int rmdReadFrame(CachedFrame *frame, FILE *ucfp, gzFile *ifp) { +static int rmdReadFrame(CachedFrame *frame, FILE *ucfp, gzFile ifp) { int index_entry_size=sizeof(u_int32_t); if (frame->header->Ynum>0) { @@ -162,7 +162,7 @@ static int rmdReadFrame(CachedFrame *frame, FILE *ucfp, gzFile *ifp) { void *rmdLoadCache(ProgData *pdata) { yuv_buffer *yuv=&pdata->enc_data->yuv; - gzFile *ifp=NULL; + gzFile ifp=NULL; FILE *ucfp=NULL; FILE *afp=pdata->cache_data->afp; FrameHeader fheader; -- cgit v1.2.1