summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/hook.c4
-rw-r--r--lib/libalpm/trans.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libalpm/hook.c b/lib/libalpm/hook.c
index 49a5dae1..ed79fdd9 100644
--- a/lib/libalpm/hook.c
+++ b/lib/libalpm/hook.c
@@ -729,7 +729,7 @@ int _alpm_hook_run(alpm_handle_t *handle, alpm_hook_when_t when)
if(hooks_triggered != NULL) {
event.type = ALPM_EVENT_HOOK_START;
- EVENT(handle, &event);
+ EVENT(handle, (void *)&event);
hook_event.position = 1;
hook_event.total = triggered;
@@ -758,7 +758,7 @@ int _alpm_hook_run(alpm_handle_t *handle, alpm_hook_when_t when)
alpm_list_free(hooks_triggered);
event.type = ALPM_EVENT_HOOK_DONE;
- EVENT(handle, &event);
+ EVENT(handle, (void *)&event);
}
cleanup:
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c
index 7e6d7bc5..239d6a14 100644
--- a/lib/libalpm/trans.c
+++ b/lib/libalpm/trans.c
@@ -199,7 +199,7 @@ int SYMEXPORT alpm_trans_commit(alpm_handle_t *handle, alpm_list_t **data)
alpm_logaction(handle, ALPM_CALLER_PREFIX, "transaction started\n");
event.type = ALPM_EVENT_TRANSACTION_START;
- EVENT(handle, &event);
+ EVENT(handle, (void *)&event);
if(trans->add == NULL) {
if(_alpm_remove_packages(handle, 1) == -1) {
@@ -223,7 +223,7 @@ int SYMEXPORT alpm_trans_commit(alpm_handle_t *handle, alpm_list_t **data)
alpm_logaction(handle, ALPM_CALLER_PREFIX, "transaction interrupted\n");
} else {
event.type = ALPM_EVENT_TRANSACTION_DONE;
- EVENT(handle, &event);
+ EVENT(handle, (void *)&event);
alpm_logaction(handle, ALPM_CALLER_PREFIX, "transaction completed\n");
_alpm_hook_run(handle, ALPM_HOOK_POST_TRANSACTION);
}