From 850bc788c3fd4bb96f425ceedfe4237754cabe46 Mon Sep 17 00:00:00 2001 From: N-R-K <79544946+N-R-K@users.noreply.github.com> Date: Fri, 29 Oct 2021 02:00:53 +0600 Subject: code-style: general cleanups (#137) * tns_clean_cache: remove unused function arg * remove malloc casting * improve consistency use sizeof(T) at the end * avoid comparing integers of different signedness * use Window type for embed and parent * remove unnecessary comparisons * remove cpp style comments * improve consistency: remove comma from the end of enumerator list * Removed useless _IMAGE_CONFIG defines * consistency: use the same order as snprintf * Resolve c89 warnings Co-authored-by: uidops Co-authored-by: Arthur Williams --- nsxiv.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nsxiv.h') diff --git a/nsxiv.h b/nsxiv.h index d49e176..06f5300 100644 --- a/nsxiv.h +++ b/nsxiv.h @@ -119,7 +119,7 @@ typedef enum { typedef enum { SUFFIX_EMPTY, SUFFIX_BASENAME, - SUFFIX_FULLPATH, + SUFFIX_FULLPATH } suffixmode_t; typedef struct { @@ -198,7 +198,7 @@ typedef struct { int cnt; int sel; bool animate; - int framedelay; + unsigned int framedelay; int length; } multi_img_t; @@ -272,7 +272,7 @@ struct opt { /* window: */ bool fullscreen; bool hide_bar; - long embed; + Window embed; /* unsigned long */ char *geometry; char *res_name; const char *title_prefix; @@ -324,7 +324,7 @@ struct tns { bool dirty; }; -void tns_clean_cache(tns_t*); +void tns_clean_cache(void); void tns_init(tns_t*, fileinfo_t*, const int*, int*, win_t*); CLEANUP void tns_free(tns_t*); bool tns_load(tns_t*, int, bool, bool); -- cgit v1.2.3