summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/conflict.c3
-rw-r--r--lib/libalpm/handle.c5
-rw-r--r--lib/libalpm/signing.c3
3 files changed, 7 insertions, 4 deletions
diff --git a/lib/libalpm/conflict.c b/lib/libalpm/conflict.c
index 5fbdfc89..0080e7cf 100644
--- a/lib/libalpm/conflict.c
+++ b/lib/libalpm/conflict.c
@@ -133,7 +133,8 @@ static int add_conflict(alpm_handle_t *handle, alpm_list_t **baddeps,
*/
static void check_conflict(alpm_handle_t *handle,
alpm_list_t *list1, alpm_list_t *list2,
- alpm_list_t **baddeps, int order) {
+ alpm_list_t **baddeps, int order)
+{
alpm_list_t *i;
if(!baddeps) {
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index 75aaf9db..1a840ab8 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -314,7 +314,8 @@ int SYMEXPORT alpm_option_set_progresscb(alpm_handle_t *handle, alpm_cb_progress
return 0;
}
-static char *canonicalize_path(const char *path) {
+static char *canonicalize_path(const char *path)
+{
char *new_path;
size_t len;
@@ -331,7 +332,7 @@ static char *canonicalize_path(const char *path) {
alpm_errno_t _alpm_set_directory_option(const char *value,
char **storage, int must_exist)
- {
+{
struct stat st;
char real[PATH_MAX];
const char *path;
diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c
index 22d4d3d4..606b6a61 100644
--- a/lib/libalpm/signing.c
+++ b/lib/libalpm/signing.c
@@ -379,7 +379,8 @@ error:
* @return 0 on success, -1 on failure to properly decode
*/
static int decode_signature(const char *base64_data,
- unsigned char **data, size_t *data_len) {
+ unsigned char **data, size_t *data_len)
+{
size_t len = strlen(base64_data);
unsigned char *usline = (unsigned char *)base64_data;
/* reasonable allocation of expected length is 3/4 of encoded length */