From 0cf05c77ad86b5c1895e94284b571afba5feebe8 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 10 Feb 2011 11:19:41 -0500 Subject: lib/dload.c: fix opening braces to conform with coding style Signed-off-by: Dave Reisner Signed-off-by: Dan McGee --- lib/libalpm/dload.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 344abaf8..012a98d6 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -53,7 +53,8 @@ static char *get_filename(const char *url) { } #ifdef HAVE_LIBCURL -static char *get_destfile(const char *path, const char *filename) { +static char *get_destfile(const char *path, const char *filename) +{ char *destfile; /* len = localpath len + filename len + null */ size_t len = strlen(path) + strlen(filename) + 1; @@ -63,7 +64,8 @@ static char *get_destfile(const char *path, const char *filename) { return(destfile); } -static char *get_tempfile(const char *path, const char *filename) { +static char *get_tempfile(const char *path, const char *filename) +{ char *tempfile; /* len = localpath len + filename len + '.part' len + null */ size_t len = strlen(path) + strlen(filename) + 6; @@ -83,7 +85,8 @@ static void inthandler(int signum) } static int curl_progress(void *filename, double dltotal, double dlnow, - double ultotal, double ulnow) { + double ultotal, double ulnow) +{ /* unused parameters */ (void)ultotal; @@ -104,7 +107,8 @@ static int curl_progress(void *filename, double dltotal, double dlnow, return(0); } -static int curl_gethost(const char *url, char *buffer) { +static int curl_gethost(const char *url, char *buffer) +{ int hostlen; char *p; @@ -129,7 +133,8 @@ static int curl_gethost(const char *url, char *buffer) { } static int curl_download_internal(const char *url, const char *localpath, - int force) { + int force) +{ int ret = -1; FILE *localf = NULL; char *destfile, *filename, *tempfile; @@ -292,7 +297,8 @@ cleanup: #endif static int download(const char *url, const char *localpath, - int force) { + int force) +{ if(handle->fetchcb == NULL) { #ifdef HAVE_LIBCURL return(curl_download_internal(url, localpath, force)); -- cgit v1.2.3-70-g09d2