summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2018-11-10 15:39:45 -0500
committerJason Woodward2018-11-10 15:39:45 -0500
commitdbcd0d8514e69b8f09ea56c852b14bcf6464d54a (patch)
tree58d9995c89995cdddeb509ccec629d53fff513b3
parentd36055014ed6168b8d0dd1229b5502c3a404a191 (diff)
downloadgslapt-dbcd0d8514e69b8f09ea56c852b14bcf6464d54a.tar.gz
slapt-get 0.11.x compatibility
-rw-r--r--src/callbacks.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
index 9ca7c8d..c485120 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -1127,7 +1127,7 @@ static void get_package_data (void)
#ifdef SLAPT_HAS_GPGME
FILE *tmp_signature_f = NULL;
#endif
- unsigned int compressed = 0;
+ bool compressed = 0;
SLAPT_PRIORITY_T source_priority = global_config->sources->src[i]->priority;
if (global_config->sources->src[i]->disabled == true)
@@ -1311,7 +1311,7 @@ static void get_package_data (void)
FILE *tmp_checksum_to_verify_f = NULL;
/* if we downloaded the compressed checksums, open it raw (w/o gunzippign) */
- if (compressed == 1) {
+ if (compressed) {
char *filename = slapt_gen_filename_from_url(global_config->sources->src[i]->url,
SLAPT_CHECKSUM_FILE_GZ);
tmp_checksum_to_verify_f = slapt_open_file(filename,"r");
@@ -1329,7 +1329,7 @@ static void get_package_data (void)
if (verified == SLAPT_CHECKSUMS_NOT_VERIFIED) {
fclose(tmp_checksum_f);
fclose(tmp_signature_f);
- if (compressed == 1)
+ if (compressed)
fclose(tmp_checksum_to_verify_f);
gdk_threads_enter();
gslapt_clear_status(context_id);
@@ -1344,7 +1344,7 @@ static void get_package_data (void)
fclose(tmp_signature_f);
/* if we opened the raw gzipped checksums, close it here */
- if (compressed == 1)
+ if (compressed)
fclose(tmp_checksum_to_verify_f);
else
rewind(tmp_checksum_f);
@@ -3858,7 +3858,7 @@ static void get_gpg_key(GtkBuilder *b)
GtkBuilder *builder;
GtkLabel *progress_action_label, *progress_message_label;
GtkProgressBar *p_bar, *dl_bar;
- unsigned int compressed = 0;
+ bool compressed = false;
FILE *gpg_key= NULL;
slapt_code_t result;
gchar *url;