diff options
-rw-r--r-- | lib/ChangeLog | 5 | ||||
-rw-r--r-- | lib/log.c | 10 |
2 files changed, 11 insertions, 4 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index faf6b185..a4f79deb 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +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. + 2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu> * prefix.c: (prefix_copy) Error message before abort should @@ -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. */ |