summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-02-19 12:51:14 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-02-19 14:08:53 +0100
commit9688383806aac671c7ae0faddaf96ec35c9a455b (patch)
tree976fa3874922439bd1d3692c751c34f13629d5c1 /src/util
parent9542512d7be40f2000298c86d3d2b728f4f0f65a (diff)
downloadsssd-9688383806aac671c7ae0faddaf96ec35c9a455b.tar.gz
sssd-9688383806aac671c7ae0faddaf96ec35c9a455b.tar.xz
sssd-9688383806aac671c7ae0faddaf96ec35c9a455b.zip
DEBUG: Fix build without journald
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/debug.c b/src/util/debug.c
index 908fca440..9cd0f41ff 100644
--- a/src/util/debug.c
+++ b/src/util/debug.c
@@ -203,14 +203,14 @@ void debug_fn(const char *file,
const char *format, ...)
{
va_list ap;
-
-#ifdef WITH_JOURNALD
- errno_t ret;
struct timeval tv;
struct tm *tm;
char datetime[20];
int year;
+#ifdef WITH_JOURNALD
+ errno_t ret;
+
if (!debug_file) {
/* If we are not outputting logs to files, we should be sending them
* to journald.