Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/log.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-07 12:41:33 -0500
committerDan McGee <dan@archlinux.org>2011-06-09 14:24:45 -0500
commit7968d30510de5a6031af39da498be5c821290b82 (patch)
tree234c6c99ca5ce0efd5034c4eaedb9b89f1e81686 /lib/libalpm/log.c
parente826c143d3e9d21485f72c5490b2a907c936024e (diff)
Require handle argument to alpm_logaction()
This is the first in a series of patches to update the API to remove the implicit global handle variable. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/log.c')
-rw-r--r--lib/libalpm/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/log.c b/lib/libalpm/log.c
index 20d1ec37..30d1d6f8 100644
--- a/lib/libalpm/log.c
+++ b/lib/libalpm/log.c
@@ -42,7 +42,7 @@ extern pmhandle_t *handle;
* @param fmt output format
* @return 0 on success, -1 on error (pm_errno is set accordingly)
*/
-int SYMEXPORT alpm_logaction(const char *fmt, ...)
+int SYMEXPORT alpm_logaction(pmhandle_t *handle, const char *fmt, ...)
{
int ret;
va_list args;
@@ -67,7 +67,7 @@ int SYMEXPORT alpm_logaction(const char *fmt, ...)
}
va_start(args, fmt);
- ret = _alpm_logaction(handle->usesyslog, handle->logstream, fmt, args);
+ ret = _alpm_logaction(handle, fmt, args);
va_end(args);
/* TODO We should add a prefix to log strings depending on who called us.