From 5b85facc638d219a7281b75bec8a08dcf79a46ce Mon Sep 17 00:00:00 2001 From: ajs Date: Fri, 26 Nov 2004 19:36:42 +0000 Subject: 2004-11-26 Andrew J. Schorr * debug.[ch]: Remove unused files. * Makefile.am: Remove references to debug.c and debug.h * ospf_main.c: Remove #include "debug.h" (was not being used, and lib/debug.h has now been deleted). --- lib/ChangeLog | 5 +++++ lib/Makefile.am | 4 ++-- lib/debug.c | 25 ------------------------- lib/debug.h | 3 --- ospfd/ChangeLog | 5 +++++ ospfd/ospf_main.c | 1 - 6 files changed, 12 insertions(+), 31 deletions(-) delete mode 100644 lib/debug.c delete mode 100644 lib/debug.h diff --git a/lib/ChangeLog b/lib/ChangeLog index 19fb03fe..f2969e94 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2004-11-26 Andrew J. Schorr + + * debug.[ch]: Remove unused files. + * Makefile.am: Remove references to debug.c and debug.h + 2004-11-26 Andrew J. Schorr * log.c: (zlog_backtrace) New function to log a backtrace. diff --git a/lib/Makefile.am b/lib/Makefile.am index 78bce16d..4709b34a 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -12,7 +12,7 @@ libzebra_la_SOURCES = \ sockunion.c prefix.c thread.c if.c memory.c buffer.c table.c hash.c \ filter.c routemap.c distribute.c stream.c str.c log.c plist.c \ zclient.c sockopt.c smux.c md5.c if_rmap.c keychain.c privs.c \ - debug.c sigevent.c pqueue.c jhash.c + sigevent.c pqueue.c jhash.c libzebra_la_DEPENDENCIES = @LIB_REGEX@ @@ -23,7 +23,7 @@ pkginclude_HEADERS = \ memory.h network.h prefix.h routemap.h distribute.h sockunion.h \ str.h stream.h table.h thread.h vector.h version.h vty.h zebra.h \ plist.h zclient.h sockopt.h smux.h md5-gnu.h if_rmap.h keychain.h \ - privs.h debug.h sigevent.h pqueue.h jhash.h zassert.h + privs.h sigevent.h pqueue.h jhash.h zassert.h EXTRA_DIST = regex.c regex-gnu.h diff --git a/lib/debug.c b/lib/debug.c deleted file mode 100644 index 252e4dd7..00000000 --- a/lib/debug.c +++ /dev/null @@ -1,25 +0,0 @@ -#include -#include "log.h" - -void -debug_print_trace (int signal) -{ -#ifdef HAVE_GLIBC_BACKTRACE - void *array[10]; - size_t size; - char **strings; - size_t i; - - size = backtrace (array, 10); - strings = backtrace_symbols (array, size); - - printf ("Obtained %zd stack frames.\n", size); - - for (i = 0; i < size; i++) - printf ("%s\n", strings[i]); - - free (strings); -#endif /* HAVE_GLIBC_BACKTRACE */ - - exit(1); -} diff --git a/lib/debug.h b/lib/debug.h deleted file mode 100644 index 44409042..00000000 --- a/lib/debug.h +++ /dev/null @@ -1,3 +0,0 @@ - -void debug_print_trace (int); - diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog index 40e5491f..2906abe8 100644 --- a/ospfd/ChangeLog +++ b/ospfd/ChangeLog @@ -1,3 +1,8 @@ +2004-11-26 Andrew J. Schorr + + * ospf_main.c: Remove #include "debug.h" (was not being used, and + lib/debug.h has now been deleted). + 2004-11-25 Hasso Tepper * ospf_main.c: Make group to run as configurable. diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c index f560547f..09ff197a 100644 --- a/ospfd/ospf_main.c +++ b/ospfd/ospf_main.c @@ -37,7 +37,6 @@ #include "log.h" #include "memory.h" #include "privs.h" -#include "debug.h" #include "sigevent.h" #include "ospfd/ospfd.h" -- cgit v1.2.1