summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-03-25 11:57:20 -0400
committerDan McGee <dan@archlinux.org>2011-04-20 19:04:53 -0500
commit91594a1ef895a6e47ece299b762d5476f1bca348 (patch)
tree36449c5a5918588eec39ba24401aafadc2e43798 /src
parentfdcfcf28a28006a4239e54a34129d3b099d0df0d (diff)
downloadpacman-91594a1ef895a6e47ece299b762d5476f1bca348.tar.xz
style cleanup: cast as (type *) not (type*)
Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/callback.c4
-rw-r--r--src/pacman/package.c2
-rw-r--r--src/pacman/pacman.c4
-rw-r--r--src/pacman/sync.c2
-rw-r--r--src/util/pactree.c4
5 files changed, 8 insertions, 8 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 7fb52129..5071d524 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -224,10 +224,10 @@ void cb_trans_evt(pmtransevt_t event, void *data1, void *data2)
printf(_("failed.\n"));
break;
case PM_TRANS_EVT_SCRIPTLET_INFO:
- printf("%s", (char*)data1);
+ printf("%s", (char *)data1);
break;
case PM_TRANS_EVT_RETRIEVE_START:
- printf(_(":: Retrieving packages from %s...\n"), (char*)data1);
+ printf(_(":: Retrieving packages from %s...\n"), (char *)data1);
break;
case PM_TRANS_EVT_DISKSPACE_START:
if(config->noprogressbar) {
diff --git a/src/pacman/package.c b/src/pacman/package.c
index e3a4614a..a113d615 100644
--- a/src/pacman/package.c
+++ b/src/pacman/package.c
@@ -84,7 +84,7 @@ void dump_pkg_full(pmpkg_t *pkg, int level)
/* turn depends list into a text list */
for(i = alpm_pkg_get_depends(pkg); i; i = alpm_list_next(i)) {
- pmdepend_t *dep = (pmdepend_t*)alpm_list_getdata(i);
+ pmdepend_t *dep = (pmdepend_t *)alpm_list_getdata(i);
depstrings = alpm_list_add(depstrings, alpm_dep_compute_string(dep));
}
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 2cc3b157..c8e3cb5f 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -842,7 +842,7 @@ static int option_add_cleanmethod(const char *value) {
* @param optionfunc a function pointer to an alpm_option_add_* function
*/
static void setrepeatingoption(char *ptr, const char *option,
- int (*optionfunc)(const char*))
+ int (*optionfunc)(const char *))
{
char *q;
@@ -1482,7 +1482,7 @@ int main(int argc, char *argv[])
printf("DB Path : %s\n", alpm_option_get_dbpath());
printf("Cache Dirs: ");
for(i = alpm_option_get_cachedirs(); i; i = alpm_list_next(i)) {
- printf("%s ", (char*)alpm_list_getdata(i));
+ printf("%s ", (char *)alpm_list_getdata(i));
}
printf("\n");
printf("Lock File : %s\n", alpm_option_get_lockfile());
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 5e8a8e0f..025e2a4b 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -148,7 +148,7 @@ static int sync_cleancache(int level)
int ret = 0;
for(i = alpm_option_get_cachedirs(); i; i = alpm_list_next(i)) {
- printf(_("Cache directory: %s\n"), (char*)alpm_list_getdata(i));
+ printf(_("Cache directory: %s\n"), (char *)alpm_list_getdata(i));
}
if(!config->cleanmethod) {
diff --git a/src/util/pactree.c b/src/util/pactree.c
index 94e628b6..1c6aebf2 100644
--- a/src/util/pactree.c
+++ b/src/util/pactree.c
@@ -267,7 +267,7 @@ static void walk_reverse_deps(pmpkg_t *pkg, int depth)
return;
}
- walked = alpm_list_add(walked, (void*)alpm_pkg_get_name(pkg));
+ walked = alpm_list_add(walked, (void *)alpm_pkg_get_name(pkg));
required_by = alpm_pkg_compute_requiredby(pkg);
for(i = required_by; i; i = alpm_list_next(i)) {
@@ -299,7 +299,7 @@ static void walk_deps(pmpkg_t *pkg, int depth)
return;
}
- walked = alpm_list_add(walked, (void*)alpm_pkg_get_name(pkg));
+ walked = alpm_list_add(walked, (void *)alpm_pkg_get_name(pkg));
for(i = alpm_pkg_get_depends(pkg); i; i = alpm_list_next(i)) {
pmdepend_t *depend = alpm_list_getdata(i);