Mercurial > geeqie
diff src/cache.c @ 1420:3a9fb1b52559
Use gboolean where applicable, for the sake of consistency.
author | zas_ |
---|---|
date | Thu, 12 Mar 2009 21:06:37 +0000 |
parents | 8b89e3ff286b |
children | 956aab097ea7 |
line wrap: on
line diff
--- a/src/cache.c Wed Mar 11 23:36:01 2009 +0000 +++ b/src/cache.c Thu Mar 12 21:06:37 2009 +0000 @@ -74,7 +74,7 @@ *------------------------------------------------------------------- */ -static gint cache_sim_write_dimensions(SecureSaveInfo *ssi, CacheData *cd) +static gboolean cache_sim_write_dimensions(SecureSaveInfo *ssi, CacheData *cd) { if (!cd || !cd->dimensions) return FALSE; @@ -83,7 +83,7 @@ return TRUE; } -static gint cache_sim_write_date(SecureSaveInfo *ssi, CacheData *cd) +static gboolean cache_sim_write_date(SecureSaveInfo *ssi, CacheData *cd) { if (!cd || !cd->have_date) return FALSE; @@ -92,7 +92,7 @@ return TRUE; } -static gint cache_sim_write_checksum(SecureSaveInfo *ssi, CacheData *cd) +static gboolean cache_sim_write_checksum(SecureSaveInfo *ssi, CacheData *cd) { if (!cd || !cd->have_checksum) return FALSE; @@ -101,7 +101,7 @@ return TRUE; } -static gint cache_sim_write_md5sum(SecureSaveInfo *ssi, CacheData *cd) +static gboolean cache_sim_write_md5sum(SecureSaveInfo *ssi, CacheData *cd) { gchar *text; @@ -114,7 +114,7 @@ return TRUE; } -static gint cache_sim_write_similarity(SecureSaveInfo *ssi, CacheData *cd) +static gboolean cache_sim_write_similarity(SecureSaveInfo *ssi, CacheData *cd) { guint x, y; guint8 buf[3 * 32]; @@ -145,7 +145,7 @@ return TRUE; } -gint cache_sim_data_save(CacheData *cd) +gboolean cache_sim_data_save(CacheData *cd) { SecureSaveInfo *ssi; gchar *pathl; @@ -185,7 +185,7 @@ *------------------------------------------------------------------- */ -static gint cache_sim_read_skipline(FILE *f, gint s) +static gboolean cache_sim_read_skipline(FILE *f, gint s) { if (!f) return FALSE; @@ -202,7 +202,7 @@ return FALSE; } -static gint cache_sim_read_comment(FILE *f, gchar *buf, gint s, CacheData *cd) +static gboolean cache_sim_read_comment(FILE *f, gchar *buf, gint s, CacheData *cd) { if (!f || !buf || !cd) return FALSE; @@ -211,7 +211,7 @@ return cache_sim_read_skipline(f, s - 1); } -static gint cache_sim_read_dimensions(FILE *f, gchar *buf, gint s, CacheData *cd) +static gboolean cache_sim_read_dimensions(FILE *f, gchar *buf, gint s, CacheData *cd) { if (!f || !buf || !cd) return FALSE; @@ -254,7 +254,7 @@ return FALSE; } -static gint cache_sim_read_date(FILE *f, gchar *buf, gint s, CacheData *cd) +static gboolean cache_sim_read_date(FILE *f, gchar *buf, gint s, CacheData *cd) { if (!f || !buf || !cd) return FALSE; @@ -294,7 +294,7 @@ return FALSE; } -static gint cache_sim_read_checksum(FILE *f, gchar *buf, gint s, CacheData *cd) +static gboolean cache_sim_read_checksum(FILE *f, gchar *buf, gint s, CacheData *cd) { if (!f || !buf || !cd) return FALSE; @@ -334,7 +334,7 @@ return FALSE; } -static gint cache_sim_read_md5sum(FILE *f, gchar *buf, gint s, CacheData *cd) +static gboolean cache_sim_read_md5sum(FILE *f, gchar *buf, gint s, CacheData *cd) { if (!f || !buf || !cd) return FALSE; @@ -371,7 +371,7 @@ return FALSE; } -static gint cache_sim_read_similarity(FILE *f, gchar *buf, gint s, CacheData *cd) +static gboolean cache_sim_read_similarity(FILE *f, gchar *buf, gint s, CacheData *cd) { if (!f || !buf || !cd) return FALSE; @@ -570,7 +570,7 @@ cd->similarity = TRUE; } -gint cache_sim_data_filled(ImageSimilarityData *sd) +gboolean cache_sim_data_filled(ImageSimilarityData *sd) { if (!sd) return FALSE; return sd->filled; @@ -678,7 +678,7 @@ const gchar *cache_rc; const gchar *cache_local; const gchar *cache_ext; - gint prefer_local; + gboolean prefer_local; if (!source) return NULL; @@ -726,13 +726,13 @@ return path; } -gint cache_time_valid(const gchar *cache, const gchar *path) +gboolean cache_time_valid(const gchar *cache, const gchar *path) { struct stat cache_st; struct stat path_st; gchar *cachel; gchar *pathl; - gint ret = FALSE; + gboolean ret = FALSE; if (!cache || !path) return FALSE;