summaryrefslogtreecommitdiffstats
path: root/thumbs.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2013-12-13 13:04:45 +0100
committerBert Münnich <ber.t@posteo.de>2013-12-13 13:04:45 +0100
commit99dfd14919f55742cbd311bd6032ce0f1dc361c5 (patch)
treec6d0b47777f671b367475a4ebc2b0bc16302641b /thumbs.c
parent9ab9cee088dd9c506358bcde96a5b2cc6339af22 (diff)
downloadnsxiv-99dfd14919f55742cbd311bd6032ce0f1dc361c5.tar.zst
Fixed Imlib file handle type, issue #117
Diffstat (limited to 'thumbs.c')
-rw-r--r--thumbs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/thumbs.c b/thumbs.c
index a1ee779..2090102 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -62,11 +62,11 @@ char* tns_cache_filepath(const char *filepath)
return cfile;
}
-Imlib_Image* tns_cache_load(const char *filepath)
+Imlib_Image tns_cache_load(const char *filepath)
{
char *cfile;
struct stat cstats, fstats;
- Imlib_Image *im = NULL;
+ Imlib_Image im = NULL;
if (filepath == NULL)
return NULL;
@@ -223,7 +223,7 @@ bool tns_load(tns_t *tns, int n, const fileinfo_t *file,
bool use_cache, cache_hit = false;
float z, zw, zh;
thumb_t *t;
- Imlib_Image *im;
+ Imlib_Image im;
const char *fmt;
if (tns == NULL || tns->thumbs == NULL)