[Spread-cvs] commit: r359 - trunk/daemon

jonathan at spread.org jonathan at spread.org
Mon Nov 13 19:30:00 EST 2006


Author: jonathan
Date: 2006-11-13 19:30:00 -0500 (Mon, 13 Nov 2006)
New Revision: 359

Modified:
   trunk/daemon/Changelog
   trunk/daemon/arch.h
Log:
Fix byte definition to correctly be defined on all platforms.
Bug noticed and originally fixed by John Schultz


Modified: trunk/daemon/Changelog
===================================================================
--- trunk/daemon/Changelog	2006-11-13 23:22:10 UTC (rev 358)
+++ trunk/daemon/Changelog	2006-11-14 00:30:00 UTC (rev 359)
@@ -1,3 +1,9 @@
+Mon Nov 13 19:28:33 2006  Jonathan Stanton  <jonathan at cnds.jhu.edu>
+
+	* arch.h: Fix byte type to correctly be defined on all 
+	platforms as an unsigned 1 byte value. Problem reported by 
+	John Schultz.
+
 Mon Nov 13 18:14:05 2006  Jonathan Stanton  <jonathan at cnds.jhu.edu>
 
 	* sample.spread.conf: Remove {} around EventPriority value

Modified: trunk/daemon/arch.h
===================================================================
--- trunk/daemon/arch.h	2006-11-13 23:22:10 UTC (rev 358)
+++ trunk/daemon/arch.h	2006-11-14 00:30:00 UTC (rev 359)
@@ -94,7 +94,7 @@
 #define         sock_set_errno(a)   (errno = (a)) 
   
 #ifndef byte
-#define byte u_int_8
+#define byte u_int8_t
 #endif
 
 #ifndef int16
@@ -158,6 +158,10 @@
 #define EAGAIN      WSAEWOULDBLOCK
 #define EINPROGRESS WSAEINPROGRESS
 
+#ifndef byte
+#define byte unsigned char
+#endif
+
 #ifndef int16
 #define int16 short
 char *soch_strerror(int err);  /* forward declare this func from the arch.c file (win32 only) */




More information about the Spread-cvs mailing list