commit: r359 - trunk/daemon

[email protected]
Newsgroups gmane.network.spread.cvs
Message-ID <[email protected]>
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  <[email protected]>
+
+	* 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  <[email protected]>
 
 	* 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) */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.