summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>2013-12-20 16:12:34 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-02-12 22:30:58 +0100
commit45a1d9d597df977354428440aeff11c6a0a947fe (patch)
tree32f63400b94de5b3400f1569ffec03293f91ea99 /src
parenta3c8390d19593b1e5277d95bfb4ab206d4785150 (diff)
downloadsssd-45a1d9d597df977354428440aeff11c6a0a947fe.tar.gz
sssd-45a1d9d597df977354428440aeff11c6a0a947fe.tar.xz
sssd-45a1d9d597df977354428440aeff11c6a0a947fe.zip
Fixup DEBUG macro invocations update
Fix mistakes made by the update script in f87797f "Make DEBUG macro invocations variadic". Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Stephen Gallagher <sgallagh@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/tools/selinux.c4
-rw-r--r--src/util/util.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/selinux.c b/src/tools/selinux.c
index c0e89fb59..a5943c9f1 100644
--- a/src/tools/selinux.c
+++ b/src/tools/selinux.c
@@ -92,7 +92,7 @@ int reset_selinux_file_context(void)
#ifdef HAVE_SEMANAGE
/* turn libselinux messages into SSSD DEBUG() calls */
-static void sss_semanage_error_callbackvoid *varg,
+static void sss_semanage_error_callback(void *varg,
semanage_handle_t *handle,
const char *fmt, ...)
{
@@ -133,7 +133,7 @@ static semanage_handle_t *sss_semanage_init(void)
handle = semanage_handle_create();
if (!handle) {
- DEBUG(1, ("Cannot create SELinux management handle\n");
+ DEBUG(1, "Cannot create SELinux management handle\n");
return NULL;
}
diff --git a/src/util/util.h b/src/util/util.h
index 207d603c9..9cc53f880 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -126,7 +126,7 @@ errno_t set_debug_file_from_fd(const int fd);
newline-terminated message
\param ... the debug message format arguments
*/
-#define DEBUGlevel, format, ...) do { \
+#define DEBUG(level, format, ...) do { \
int __debug_macro_newlevel = debug_get_level(level); \
if (DEBUG_IS_SET(__debug_macro_newlevel)) \
debug_fn(__FUNCTION__, __debug_macro_newlevel, format, ##__VA_ARGS__); \
@@ -173,7 +173,7 @@ errno_t set_debug_file_from_fd(const int fd);
#define FLAGS_PID_FILE 0x0004
#ifndef talloc_zfree
-#define talloc_zfree(ptr) do { talloc_free(discard_const(ptr); ptr = NULL; } while(0)
+#define talloc_zfree(ptr) do { talloc_free(discard_const(ptr)); ptr = NULL; } while(0)
#endif
#ifndef discard_const_p