diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-12-06 23:37:32 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-12-12 12:51:59 -0600 |
commit | 3d4656c0204956847a62c95b0f28747d7a0c2c05 (patch) | |
tree | 8263b85a03d387a6911748d763fdd1e8235248d7 /src | |
parent | 5f0df423033c94e8ae52ca642284bf6a50fa9bbb (diff) | |
download | pacman-3d4656c0204956847a62c95b0f28747d7a0c2c05.tar.xz |
code syntax cleanup
As per HACKING file, we use 'CTRL(' rather than 'CTRL ('
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/callback.c | 4 | ||||
-rw-r--r-- | src/pacman/conf.c | 8 | ||||
-rw-r--r-- | src/pacman/pacman.c | 2 | ||||
-rw-r--r-- | src/pacman/util.c | 6 |
4 files changed, 10 insertions, 10 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 2d989ba9..c118940d 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -298,7 +298,7 @@ void cb_question(alpm_question_t event, void *data1, void *data2, alpm_list_t *unresolved = data1; alpm_list_t *namelist = NULL, *i; size_t count = 0; - for (i = unresolved; i; i = i->next) { + for(i = unresolved; i; i = i->next) { namelist = alpm_list_add(namelist, (char *)alpm_pkg_get_name(i->data)); count++; @@ -351,7 +351,7 @@ void cb_question(alpm_question_t event, void *data1, void *data2, time_t time = (time_t)key->created; strftime(created, 12, "%Y-%m-%d", localtime(&time)); - if (key->revoked) { + if(key->revoked) { revoked = " (revoked)"; } diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 5328e7cc..482a86d9 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -259,11 +259,11 @@ static int process_siglevel(alpm_list_t *values, alpm_siglevel_t *storage, const char *original = i->data, *value; int package = 0, database = 0; - if (strncmp(original, "Package", strlen("Package")) == 0) { + if(strncmp(original, "Package", strlen("Package")) == 0) { /* only packages are affected, don't flip flags for databases */ value = original + strlen("Package"); package = 1; - } else if (strncmp(original, "Database", strlen("Database")) == 0) { + } else if(strncmp(original, "Database", strlen("Database")) == 0) { /* only databases are affected, don't flip flags for packages */ value = original + strlen("Database"); database = 1; @@ -823,7 +823,7 @@ static int _parseconfig(const char *file, struct section_t *section, if((ret = _parse_options(key, value, file, linenum)) != 0) { goto cleanup; } - } else if (!parse_options && !section->is_options) { + } else if(!parse_options && !section->is_options) { /* ... or in a repo section */ if(strcmp(key, "Server") == 0) { if(value == NULL) { @@ -860,7 +860,7 @@ static int _parseconfig(const char *file, struct section_t *section, } cleanup: - if (fp) { + if(fp) { fclose(fp); } pm_printf(ALPM_LOG_DEBUG, "config: finished parsing %s\n", file); diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index fa35e8de..d2fa62f8 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -207,7 +207,7 @@ static void usage(int op, const char * const myname) addlist(_(" --noconfirm do not ask for any confirmation\n")); } list = alpm_list_msort(list, alpm_list_count(list), options_cmp); - for (i = list; i; i = alpm_list_next(i)) { + for(i = list; i; i = alpm_list_next(i)) { fputs((const char *)i->data, stdout); } alpm_list_free(list); diff --git a/src/pacman/util.c b/src/pacman/util.c index c0dcb9f2..12f3dcae 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -681,7 +681,7 @@ void list_display(const char *title, const alpm_list_t *list) size_t j; cols = len; printf("\n"); - for (j = 1; j <= len; j++) { + for(j = 1; j <= len; j++) { printf(" "); } } else if(cols != len) { @@ -1184,7 +1184,7 @@ void select_display(const alpm_list_t *pkglist) char *string = NULL; const char *dbname = NULL; - for (i = pkglist; i; i = i->next) { + for(i = pkglist; i; i = i->next) { alpm_pkg_t *pkg = i->data; alpm_db_t *db = alpm_pkg_get_db(pkg); @@ -1227,7 +1227,7 @@ static int multiselect_parse(char *array, int count, char *response) { char *str, *saveptr; - for (str = response; ; str = NULL) { + for(str = response; ; str = NULL) { int include = 1; int start, end; char *ends = NULL; |