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:
Diffstat (limited to 'lib/libalpm/log.c')
-rw-r--r--lib/libalpm/log.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/libalpm/log.c b/lib/libalpm/log.c
index 09c6fb84..20d1ec37 100644
--- a/lib/libalpm/log.c
+++ b/lib/libalpm/log.c
@@ -22,10 +22,7 @@
#include <stdio.h>
#include <stdarg.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include <errno.h>
-#include <time.h>
/* libalpm */
#include "log.h"
@@ -33,6 +30,9 @@
#include "util.h"
#include "alpm.h"
+/* global handle variable */
+extern pmhandle_t *handle;
+
/** \addtogroup alpm_log Logging Functions
* @brief Functions to log using libalpm
* @{
@@ -47,8 +47,6 @@ int SYMEXPORT alpm_logaction(const char *fmt, ...)
int ret;
va_list args;
- ALPM_LOG_FUNC;
-
/* Sanity checks */
ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1));
@@ -64,7 +62,7 @@ int SYMEXPORT alpm_logaction(const char *fmt, ...)
} else {
pm_errno = PM_ERR_SYSTEM;
}
- return(-1);
+ return -1;
}
}
@@ -83,7 +81,7 @@ int SYMEXPORT alpm_logaction(const char *fmt, ...)
* kpacman: "KPACMAN"
* This would allow us to share the log file between several frontends
* and know who does what */
- return(ret);
+ return ret;
}
/** @} */