Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=91e075ff45872a36b72168a647f417514d53f91a

commit 91e075ff45872a36b72168a647f417514d53f91a
Author: Michel Hermier <[email protected]>
Date:   Wed Oct 30 09:41:16 2013 +0100

libpacman: Use _pacman_vlogaction in pacman_logaction.

diff --git a/lib/libpacman/pacman.c b/lib/libpacman/pacman.c
index 6260a47..c6e1ef7 100644
--- a/lib/libpacman/pacman.c
+++ b/lib/libpacman/pacman.c
@@ -923,14 +923,13 @@ void *pacman_conflict_getinfo(pmconflict_t *conflict, 
unsigned char parm)
*/
int pacman_logaction(const char *fmt, ...)
{
-       char str[LOG_STR_LEN];
va_list args;

/* Sanity checks */
ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1));

va_start(args, fmt);
-       vsnprintf(str, LOG_STR_LEN, fmt, args);
+       _pacman_vlogaction(handle->usesyslog, handle->logfd, fmt, args);
va_end(args);

/* TODO
@@ -946,7 +945,7 @@ int pacman_logaction(const char *fmt, ...)
It allows to share the log file between several frontends and to actually
know who does what */

-       return(_pacman_logaction(handle->usesyslog, handle->logfd, str));
+       return 0;
}
/** @} */
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to