summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortblume <Thomas.Blume@suse.com>2017-04-26 02:37:07 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-25 20:37:07 -0400
commit1f0f4f3bfd05fd416e3e2dea10ad225b276a6ef7 (patch)
tree823fe08bd924933c61c6b425ca4c0e3a31d1e222
parentc0e7906d2041dad35822a31f8e84768c264d7f6d (diff)
importd: support SUSE style checksums supplementary (#5800)
some small changes to make the code look better
-rw-r--r--src/import/pull-job.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/import/pull-job.c b/src/import/pull-job.c
index 8eabb09eed..320c21305a 100644
--- a/src/import/pull-job.c
+++ b/src/import/pull-job.c
@@ -22,15 +22,15 @@
#include "alloc-util.h"
#include "fd-util.h"
#include "hexdecoct.h"
+#include "import-util.h"
#include "io-util.h"
#include "machine-pool.h"
#include "parse-util.h"
+#include "pull-common.h"
#include "pull-job.h"
#include "string-util.h"
#include "strv.h"
#include "xattr-util.h"
-#include "pull-common.h"
-#include "import-util.h"
PullJob* pull_job_unref(PullJob *j) {
if (!j)
@@ -84,10 +84,9 @@ static int pull_job_restart(PullJob *j) {
return r;
free(j->url);
- free(j->payload);
j->url = chksum_url;
j->state = PULL_JOB_INIT;
- j->payload = NULL;
+ j->payload = mfree(j->payload);
j->payload_size = 0;
j->payload_allocated = 0;
j->written_compressed = 0;
@@ -101,7 +100,6 @@ static int pull_job_restart(PullJob *j) {
return 0;
}
-
void pull_job_curl_on_finished(CurlGlue *g, CURL *curl, CURLcode result) {
PullJob *j = NULL;
CURLcode code;