mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 07:48:07 +00:00
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.
This commit is contained in:
parent
3fb9de74bb
commit
c3324c63b5
@ -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>
|
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||||
|
|
||||||
* prefix.c: (prefix_copy) Error message before abort should
|
* prefix.c: (prefix_copy) Error message before abort should
|
||||||
|
12
lib/log.c
12
lib/log.c
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: log.c,v 1.18 2004/12/09 14:53:32 gdt Exp $
|
* $Id: log.c,v 1.19 2004/12/09 17:26:31 ajs Exp $
|
||||||
*
|
*
|
||||||
* Logging of zebra
|
* Logging of zebra
|
||||||
* Copyright (C) 1997, 1998, 1999 Kunihiro Ishiguro
|
* Copyright (C) 1997, 1998, 1999 Kunihiro Ishiguro
|
||||||
@ -177,10 +177,10 @@ num_append(char *s, int len, u_long x)
|
|||||||
return str_append(s,len,t);
|
return str_append(s,len,t);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
#ifdef HAVE_GLIBC_BACKTRACE
|
||||||
* XXX warning: `hex_append' defined but not used
|
|
||||||
* Apparently this is used only if HAVE_GLIBC_BACKTRACE is defined.
|
/* This function is used only in zlog_backtrace_sigsafe when glibc
|
||||||
*/
|
backtraces are available. */
|
||||||
static char *
|
static char *
|
||||||
hex_append(char *s, int len, u_long x)
|
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);
|
return str_append(s,len,t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_GLIBC_BACKTRACE */
|
||||||
|
|
||||||
static int syslog_fd = -1;
|
static int syslog_fd = -1;
|
||||||
|
|
||||||
/* Needs to be enhanced to support Solaris. */
|
/* Needs to be enhanced to support Solaris. */
|
||||||
|
Loading…
Reference in New Issue
Block a user