diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-02-21 11:38:10 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-02-21 19:29:48 +0100 |
commit | 3ddbc81148d8bae386beb987195086ade9355f38 (patch) | |
tree | 0bf72f429dbe2ac91671b02e8482b43881716cc0 /src/util | |
parent | 26786da26706aeedbda4caea0383c143ed4e59dc (diff) | |
download | sssd-3ddbc81148d8bae386beb987195086ade9355f38.tar.gz sssd-3ddbc81148d8bae386beb987195086ade9355f38.tar.xz sssd-3ddbc81148d8bae386beb987195086ade9355f38.zip |
Fix warning unused variable ap_fallback
The variable ap_fallback is used only if sssd is build with journald, but
this variable was declared outside of "#ifdef WITH_JOURNALD"
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/debug.c b/src/util/debug.c index 1db3693a1..b66de07b4 100644 --- a/src/util/debug.c +++ b/src/util/debug.c @@ -203,7 +203,6 @@ void debug_fn(const char *file, const char *format, ...) { va_list ap; - va_list ap_fallback; struct timeval tv; struct tm *tm; char datetime[20]; @@ -211,6 +210,7 @@ void debug_fn(const char *file, #ifdef WITH_JOURNALD errno_t ret; + va_list ap_fallback; if (!debug_file) { /* If we are not outputting logs to files, we should be sending them |