summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-10-13 19:30:31 +0200
committerDan McGee <dan@archlinux.org>2011-10-13 22:16:59 +0200
commit5b5b250443ed416a2c2315c28a034501603cd003 (patch)
tree63d83807fb218924ee2506f724aac2291aadb5b3
parent86bc36412e2619e0e05d61cf6216ef68814cf1cd (diff)
downloadpacman-5b5b250443ed416a2c2315c28a034501603cd003.tar.gz
pacman-5b5b250443ed416a2c2315c28a034501603cd003.tar.xz
Coding style cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--src/pacman/util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index ee8fe3ff..24ac782b 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -1043,19 +1043,19 @@ void print_packages(const alpm_list_t *packages)
char *string = strdup(config->print_format);
char *temp = string;
/* %n : pkgname */
- if(strstr(temp,"%n")) {
+ if(strstr(temp, "%n")) {
string = strreplace(temp, "%n", alpm_pkg_get_name(pkg));
free(temp);
temp = string;
}
/* %v : pkgver */
- if(strstr(temp,"%v")) {
+ if(strstr(temp, "%v")) {
string = strreplace(temp, "%v", alpm_pkg_get_version(pkg));
free(temp);
temp = string;
}
/* %l : location */
- if(strstr(temp,"%l")) {
+ if(strstr(temp, "%l")) {
char *pkgloc = pkg_get_location(pkg);
string = strreplace(temp, "%l", pkgloc);
free(pkgloc);
@@ -1063,7 +1063,7 @@ void print_packages(const alpm_list_t *packages)
temp = string;
}
/* %r : repo */
- if(strstr(temp,"%r")) {
+ if(strstr(temp, "%r")) {
const char *repo = "local";
alpm_db_t *db = alpm_pkg_get_db(pkg);
if(db) {
@@ -1074,7 +1074,7 @@ void print_packages(const alpm_list_t *packages)
temp = string;
}
/* %s : size */
- if(strstr(temp,"%s")) {
+ if(strstr(temp, "%s")) {
char *size;
pm_asprintf(&size, "%jd", (intmax_t)pkg_get_size(pkg));
string = strreplace(temp, "%s", size);