summaryrefslogtreecommitdiff
path: root/src/pacman
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman')
-rw-r--r--src/pacman/conf.c12
-rw-r--r--src/pacman/pacman.c3
-rw-r--r--src/pacman/util.c3
3 files changed, 12 insertions, 6 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;
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index f293a5d1..f3ca8b97 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -258,7 +258,8 @@ static void setuseragent(void)
*
* @param ret the return value
*/
-static void cleanup(int ret) {
+static void cleanup(int ret)
+{
/* free alpm library resources */
if(config->handle && alpm_release(config->handle) == -1) {
pm_printf(ALPM_LOG_ERROR, "error releasing alpm library\n");
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 27e1f158..03063fb5 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -130,7 +130,8 @@ int check_syncdbs(size_t need_repos, int check_valid)
}
/* discard unhandled input on the terminal's input buffer */
-static int flush_term_input(int fd) {
+static int flush_term_input(int fd)
+{
#ifdef HAVE_TCFLUSH
if(isatty(fd)) {
return tcflush(fd, TCIFLUSH);