aboutsummaryrefslogtreecommitdiffstats
path: root/nsxiv.h
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2021-10-28 22:00:53 +0200
committerGitHub <noreply@github.com>2021-10-28 22:00:53 +0200
commit850bc788c3fd4bb96f425ceedfe4237754cabe46 (patch)
tree8007a27013fe67601640e257310161a2c254f3ba /nsxiv.h
parent03eb664e89d01cb9a28a9a2dcbad6aac208fa03b (diff)
downloadnsxiv-850bc788c3fd4bb96f425ceedfe4237754cabe46.tar.zst
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 <uidops@protonmail.com> Co-authored-by: Arthur Williams <taaparthur@gmail.com>
Diffstat (limited to 'nsxiv.h')
-rw-r--r--nsxiv.h8
1 files changed, 4 insertions, 4 deletions
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);