diff options
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2013-01-03 18:48:52 -0300 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-01-04 21:49:37 +1000 |
commit | b5709b8171c5be82ebb3651680ae3698b7513f43 (patch) | |
tree | 51993e70ae95ccecf0c74c5e82d45c4915421efa /src/pacman/conf.c | |
parent | e13a3bf5990d03cca25c86efbfbaf2540d645413 (diff) |
Fix open braces style
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/conf.c')
-rw-r--r-- | src/pacman/conf.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 6ea7fe22..1bea2b0e 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -90,7 +90,8 @@ int config_free(config_t *oldconfig) } /** Helper function for download_with_xfercommand() */ -static char *get_filename(const char *url) { +static char *get_filename(const char *url) +{ char *filename = strrchr(url, '/'); if(filename != NULL) { filename++; @@ -99,7 +100,8 @@ static char *get_filename(const char *url) { } /** Helper function for download_with_xfercommand() */ -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; @@ -110,7 +112,8 @@ static char *get_destfile(const char *path, const char *filename) { } /** Helper function for download_with_xfercommand() */ -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; @@ -122,7 +125,8 @@ static char *get_tempfile(const char *path, const char *filename) { /** External fetch callback */ static int download_with_xfercommand(const char *url, const char *localpath, - int force) { + int force) +{ int ret = 0, retval; int usepart = 0; int cwdfd; |