summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/rmd_cache.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-06-20 17:19:38 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-06-23 18:04:42 -0700
commitf3f565db6c16cf15f9e99027161cd38fd749ae39 (patch)
tree7b4445b759f6dcdcbe86d63ad1a1959fdabbf8a4 /recordmydesktop/src/rmd_cache.c
parent58e5ec09e0feb7b6ebe2fc89ba32731b20a1ce39 (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_cache.c')
-rw-r--r--recordmydesktop/src/rmd_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/recordmydesktop/src/rmd_cache.c b/recordmydesktop/src/rmd_cache.c
index 22c7200..bb3c765 100644
--- a/recordmydesktop/src/rmd_cache.c
+++ b/recordmydesktop/src/rmd_cache.c
@@ -57,7 +57,7 @@ static void rmdCacheFileN(char *name, char **newname, int n) { // Nth cache file
strcat(*newname, numbuf);
}
-int rmdSwapCacheFilesWrite(char *name, int n, gzFile **fp, FILE **ucfp) {
+int rmdSwapCacheFilesWrite(char *name, int n, gzFile *fp, FILE **ucfp) {
char *newname = malloc(strlen(name) + 10);
rmdCacheFileN(name, &newname, n);
@@ -75,7 +75,7 @@ int rmdSwapCacheFilesWrite(char *name, int n, gzFile **fp, FILE **ucfp) {
return ((*fp == NULL) && (*ucfp == NULL));
}
-int rmdSwapCacheFilesRead(char *name, int n, gzFile **fp, FILE **ucfp) {
+int rmdSwapCacheFilesRead(char *name, int n, gzFile *fp, FILE **ucfp) {
char *newname = malloc(strlen(name) + 10);
rmdCacheFileN(name, &newname, n);
© All Rights Reserved