summaryrefslogtreecommitdiffstats
path: root/lib/log.c
diff options
context:
space:
mode:
authorajs <ajs>2004-12-09 17:26:31 +0000
committerajs <ajs>2004-12-09 17:26:31 +0000
commit617540bda70c3c83b8b5dda49d33a80a3be9a8af (patch)
treeea440271836b97f9e41eae7ffe32a9a32010e516 /lib/log.c
parentf60528ecef682f72c4e0552f5f4dd0bc811ea02a (diff)
downloadquagga-617540bda70c3c83b8b5dda49d33a80a3be9a8af.tar.bz2
quagga-617540bda70c3c83b8b5dda49d33a80a3be9a8af.tar.xz
2004-12-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* log.c: (hex_append) No need to include this function if HAVE_GLIBC_BACKTRACE is not defined.
Diffstat (limited to 'lib/log.c')
-rw-r--r--lib/log.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/log.c b/lib/log.c
index 2926091f..9d7bf84a 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -177,10 +177,10 @@ num_append(char *s, int len, u_long x)
return str_append(s,len,t);
}
-/*
- * XXX warning: `hex_append' defined but not used
- * Apparently this is used only if HAVE_GLIBC_BACKTRACE is defined.
- */
+#ifdef HAVE_GLIBC_BACKTRACE
+
+/* This function is used only in zlog_backtrace_sigsafe when glibc
+ backtraces are available. */
static char *
hex_append(char *s, int len, u_long x)
{
@@ -199,6 +199,8 @@ hex_append(char *s, int len, u_long x)
return str_append(s,len,t);
}
+#endif /* HAVE_GLIBC_BACKTRACE */
+
static int syslog_fd = -1;
/* Needs to be enhanced to support Solaris. */