From d693d86f7b3062f4e38675d6238cf1c46babc0d1 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Tue, 18 Jul 2000 06:51:58 +0000 Subject: [PATCH] Debug version bug fixes. --- lib/silccore/silcpacket.c | 9 +++++++-- lib/silccore/silcschedule.c | 6 +++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/silccore/silcpacket.c b/lib/silccore/silcpacket.c index 25e1d694..8cb27995 100644 --- a/lib/silccore/silcpacket.c +++ b/lib/silccore/silcpacket.c @@ -23,6 +23,9 @@ /* * $Id$ * $Log$ + * Revision 1.4 2000/07/18 06:51:58 priikone + * Debug version bug fixes. + * * Revision 1.3 2000/07/14 06:10:15 priikone * Moved all the generic packet sending, enryption, reception, * decryption and processing function from client and server to @@ -98,8 +101,9 @@ int silc_packet_send(SilcSocketConnection sock, int force_send) /* Write to network */ ret = silc_packet_write(sock->sock, sock->outbuf); - if (ret == -1) + if (ret == -1) { SILC_LOG_ERROR(("Error sending packet, dropped")); + } if (ret != -2) return ret; @@ -487,8 +491,9 @@ int silc_packet_receive(SilcSocketConnection sock) ret = silc_packet_read(sock->sock, sock->inbuf); /* Error */ - if (ret == -1) + if (ret == -1) { SILC_LOG_ERROR(("Error reading packet, dropped")); + } return ret; } diff --git a/lib/silccore/silcschedule.c b/lib/silccore/silcschedule.c index 78090738..5236e789 100644 --- a/lib/silccore/silcschedule.c +++ b/lib/silccore/silcschedule.c @@ -20,6 +20,9 @@ /* * $Id$ * $Log$ + * Revision 1.3 2000/07/18 06:51:58 priikone + * Debug version bug fixes. + * * Revision 1.2 2000/07/05 06:06:35 priikone * Global cosmetic change. * @@ -468,9 +471,10 @@ void silc_schedule() break; } - if (schedule.timeout) + if (schedule.timeout) { SILC_LOG_DEBUG(("timeout: sec=%d, usec=%d", schedule.timeout->tv_sec, schedule.timeout->tv_usec)); + } /* This is the main select(). The program blocks here until some of the selected file descriptors change status or the selected -- 2.43.0