Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/dload.c
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-02-10 11:19:41 -0500
committerDan McGee <dan@archlinux.org>2011-03-20 18:49:01 -0500
commit0cf05c77ad86b5c1895e94284b571afba5feebe8 (patch)
tree238058c0db6e088c705aaf08299aa8c95567f84e /lib/libalpm/dload.c
parentb2fde01c545286bb92f6194603817602bf9dfbe7 (diff)
lib/dload.c: fix opening braces to conform with coding style
Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/dload.c')
-rw-r--r--lib/libalpm/dload.c18
1 files changed, 12 insertions, 6 deletions
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));