diff options
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); |