diff options
author | hasso <hasso> | 2004-03-04 17:45:00 +0000 |
---|---|---|
committer | hasso <hasso> | 2004-03-04 17:45:00 +0000 |
commit | fa2b17e39499a77f41a719035a588b7fb63cec63 (patch) | |
tree | 3356703917aaa8359e0106ae3c2340ee6eea0e1f /lib | |
parent | caa6f8ac7d07f8cd3269255e6dce6d248f74af62 (diff) |
Many warning fixes from PC Drew ([quagga-dev 940]) and removing using PAGER
from vtysh ([quagga-dev 932]).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/debug.c | 2 | ||||
-rw-r--r-- | lib/keychain.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/debug.c b/lib/debug.c index c4b67a52..252e4dd7 100644 --- a/lib/debug.c +++ b/lib/debug.c @@ -4,6 +4,7 @@ void debug_print_trace (int signal) { +#ifdef HAVE_GLIBC_BACKTRACE void *array[10]; size_t size; char **strings; @@ -18,6 +19,7 @@ debug_print_trace (int signal) printf ("%s\n", strings[i]); free (strings); +#endif /* HAVE_GLIBC_BACKTRACE */ exit(1); } diff --git a/lib/keychain.c b/lib/keychain.c index dbf431a4..527da053 100644 --- a/lib/keychain.c +++ b/lib/keychain.c @@ -921,7 +921,7 @@ keychain_config_write (struct vty *vty) vty_out (vty, " infinite"); else if (key->accept.duration) vty_out (vty, " duration %ld", - key->accept.end - key->accept.start); + (long)(key->accept.end - key->accept.start)); else { keychain_strftime (buf, BUFSIZ, &key->accept.end); @@ -938,7 +938,7 @@ keychain_config_write (struct vty *vty) if (key->send.end == -1) vty_out (vty, " infinite"); else if (key->send.duration) - vty_out (vty, " duration %ld", key->send.end - key->send.start); + vty_out (vty, " duration %ld", (long)(key->send.end - key->send.start)); else { keychain_strftime (buf, BUFSIZ, &key->send.end); |