r447 - trunk/emulator/usim

rswindells at common-lisp.net rswindells at common-lisp.net
Tue May 24 15:22:35 UTC 2016


Author: rswindells
Date: Tue May 24 15:22:35 2016
New Revision: 447

Log:
Use time_t for time stuff and delete stray debug printf().

Modified:
   trunk/emulator/usim/chaos.c

Modified: trunk/emulator/usim/chaos.c
==============================================================================
--- trunk/emulator/usim/chaos.c	Tue May 24 15:18:34 2016	(r446)
+++ trunk/emulator/usim/chaos.c	Tue May 24 15:22:35 2016	(r447)
@@ -175,6 +175,7 @@
 	  assert_unibus_interrupt(0270);
 }
 
+#if CHAOS_DEBUG_PKT
 char *opcodetable[256] = {
     "UNKNOWN",                                      // 0
     "RFC - Request for Connection",                 // 1
@@ -194,7 +195,6 @@
     "UNKNOWN",                                      // 15
 };
 
-#if CHAOS_DEBUG_PKT
 static void
 dumpbuffer(unsigned short *buffer, int size)
 {
@@ -1171,7 +1171,7 @@
             }
             if (memcmp(&packet->data, "TIME", 4) == 0)
             {
-                long t;
+                time_t t;
                 struct timeval time;
                 chaos_packet *answer = malloc(CHAOS_PACKET_HEADER_SIZE + sizeof(long));
                
@@ -1698,7 +1698,6 @@
     
     if (getsockopt(chaos_fd, SOL_SOCKET, SO_RCVBUF, &value, &length) == 0)
     {
-        printf("SO_RCVBUF size: %d\n", value);
         value = value * 4;
         if (setsockopt(chaos_fd, SOL_SOCKET, SO_RCVBUF, &value, sizeof(value)) != 0)
             printf("setsockopt(SO_RCVBUF) failed\n");



More information about the mit-cadr-cvs mailing list