aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-08-25 06:08:07 -0400
committerMike Frysinger <vapier@gentoo.org>2009-08-25 06:19:14 -0400
commitb8cfb099a975c48de1544007972dc9367403a684 (patch)
tree06e5935fdfcf96dae1c818ffe4ef339111ee6620 /libsbutil
parentlibsbutil: kill off confusing SB_WRITE macro (diff)
downloadsandbox-b8cfb099a975c48de1544007972dc9367403a684.tar.gz
sandbox-b8cfb099a975c48de1544007972dc9367403a684.tar.bz2
sandbox-b8cfb099a975c48de1544007972dc9367403a684.zip
libsbutil: kill off unnecessary log_domain code
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsbutil')
-rw-r--r--libsbutil/include/rcscripts/util/debug.h3
-rw-r--r--libsbutil/src/debug.c10
2 files changed, 1 insertions, 12 deletions
diff --git a/libsbutil/include/rcscripts/util/debug.h b/libsbutil/include/rcscripts/util/debug.h
index db9671b..aee8055 100644
--- a/libsbutil/include/rcscripts/util/debug.h
+++ b/libsbutil/include/rcscripts/util/debug.h
@@ -14,9 +14,6 @@
#include <errno.h>
#include <stdio.h>
-void
-rc_log_domain (const char *new_domain);
-
/* Using errno to try and create a debug system that will 'trace' from the
* point the initial error occured, is highly messy and needs strict errno
* accounting. So we rather implement our own private errno system.
diff --git a/libsbutil/src/debug.c b/libsbutil/src/debug.c
index 4806e51..42652a3 100644
--- a/libsbutil/src/debug.c
+++ b/libsbutil/src/debug.c
@@ -13,15 +13,7 @@
volatile static int debug_errno = 0;
-static char log_domain_default[] = "rcscripts";
-static char *log_domain = log_domain_default;
-
-void
-rc_log_domain (const char *new_domain)
-{
- if (check_str (new_domain))
- log_domain = (char *)new_domain;
-}
+#define log_domain "sandbox"
void
rc_errno_set (int rc_errno)