Debug version bug fixes.
authorPekka Riikonen <priikone@silcnet.org>
Tue, 18 Jul 2000 06:51:58 +0000 (06:51 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 18 Jul 2000 06:51:58 +0000 (06:51 +0000)
lib/silccore/silcpacket.c
lib/silccore/silcschedule.c

index 25e1d694f10d7daa7701a94be8b0c8c445ac70c9..8cb2799552e401223dacd42547815fb18708b6be 100644 (file)
@@ -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;
 }
index 78090738333f99cfed525020fa475ea6add20207..5236e78985f197a8b085629f395fe78453f60d55 100644 (file)
@@ -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