aboutsummaryrefslogtreecommitdiffstats
path: root/thumbs.c
diff options
context:
space:
mode:
authorN-R-K <nrk@disroot.org>2022-05-03 17:36:57 +0200
committerGitHub <noreply@github.com>2022-05-03 17:36:57 +0200
commit3a22e6a6c5ad10e8c5cb9abb3615d2a8867d63e9 (patch)
tree5a2e26fa1e6bd4b110c612054a6832275fced1f8 /thumbs.c
parent591be8cecfaef143824e76c73f7c586261297c9c (diff)
downloadnsxiv-3a22e6a6c5ad10e8c5cb9abb3615d2a8867d63e9.tar.zst
Declare every extern function/variable in `nsxiv.h` (#268)
with a couple exceptions as they cause too many -Wshadow warnings. also moves the `extcmd_t` typedef on top for cosmetic purposes. also enable `-Wmissing-prototypes` in the ci
Diffstat (limited to 'thumbs.c')
-rw-r--r--thumbs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/thumbs.c b/thumbs.c
index b4c2de3..52820d4 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -31,9 +31,7 @@
#if HAVE_LIBEXIF
#include <libexif/exif-data.h>
-void exif_auto_orientate(const fileinfo_t*);
#endif
-Imlib_Image img_open(const fileinfo_t*);
static char *cache_dir;
@@ -143,7 +141,7 @@ void tns_clean_cache(void)
r_closedir(&dir);
}
-void tns_init(tns_t *tns, fileinfo_t *files, const int *cnt, int *sel, win_t *win)
+void tns_init(tns_t *tns, fileinfo_t *tns_files, const int *cnt, int *sel, win_t *win)
{
int len;
const char *homedir, *dsuffix = "";
@@ -152,7 +150,7 @@ void tns_init(tns_t *tns, fileinfo_t *files, const int *cnt, int *sel, win_t *wi
tns->thumbs = ecalloc(*cnt, sizeof(thumb_t));
else
tns->thumbs = NULL;
- tns->files = files;
+ tns->files = tns_files;
tns->cnt = cnt;
tns->initnext = tns->loadnext = 0;
tns->first = tns->end = tns->r_first = tns->r_end = 0;