diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-06-20 17:19:38 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-06-23 18:04:42 -0700 |
commit | f3f565db6c16cf15f9e99027161cd38fd749ae39 (patch) | |
tree | 7b4445b759f6dcdcbe86d63ad1a1959fdabbf8a4 /recordmydesktop/src/rmd_load_cache.c | |
parent | 58e5ec09e0feb7b6ebe2fc89ba32731b20a1ce39 (diff) |
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.
Diffstat (limited to 'recordmydesktop/src/rmd_load_cache.c')
-rw-r--r-- | recordmydesktop/src/rmd_load_cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |