From 431674d733c2bb54e4f73340207b0ff2afdae26d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 13 Aug 2014 21:49:44 +0200 Subject: [PATCH] lib/download.c: style twerks. --- lib/download.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/download.c b/lib/download.c index aec3438e..c855a6f8 100644 --- a/lib/download.c +++ b/lib/download.c @@ -341,8 +341,7 @@ xbps_fetch_delta(struct xbps_handle *xhp, const char *basefile, const char *uri, } if ((pid = fork()) == 0) { - execl(xdelta, xdelta, "-d", "-f", "-s", basefile, dname, tempfile, - NULL); + execl(xdelta, xdelta, "-d", "-f", "-s", basefile, dname, tempfile, NULL); exit(127); } else if (pid < 0) { xbps_dbg_printf(xhp, "error while forking, fallback to full " @@ -355,7 +354,7 @@ xbps_fetch_delta(struct xbps_handle *xhp, const char *basefile, const char *uri, exitcode = WEXITSTATUS(status); unlink(dname); - switch(exitcode) { + switch (exitcode) { case 0: // success rv = 1; if (rename(tempfile, filename) == -1) { @@ -377,13 +376,13 @@ xbps_fetch_delta(struct xbps_handle *xhp, const char *basefile, const char *uri, fetch_delta_fallback: rv = xbps_fetch_file_dest(xhp, uri, filename, flags); fetch_delta_out: - if(tempfile != NULL) + if (tempfile != NULL) free(tempfile); - if(dname != NULL) + if (dname != NULL) free(dname); - if(durl != NULL) + if (durl != NULL) free(durl); - if(basehash != NULL) + if (basehash != NULL) free(basehash); return rv;