[Sumover-dev] [svn commit] r3972 - common/trunk/src
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Sat Mar 3 23:38:40 GMT 2007
Author: piers
Date: Sat Mar 3 23:38:55 2007
New Revision: 3972
Modified:
common/trunk/src/mbus.c
common/trunk/src/mbus.h
Log:
Added mbus errlist textual explanations so that they compile properly
Modified: common/trunk/src/mbus.c
==============================================================================
--- common/trunk/src/mbus.c (original)
+++ common/trunk/src/mbus.c Sat Mar 3 23:38:55 2007
@@ -59,6 +59,14 @@
#define MBUS_MAGIC 0x87654321
#define MBUS_MSG_MAGIC 0x12345678
+char mbus_errlist[][30] = {
+ "MBUS_OK",
+ "MBUS_MESSAGE_LOST",
+ "MBUS_DESTINATION_UNKNOWN",
+ "MBUS_DESTINATION_NOT_UNIQUE",
+ "MBUS_UNKOWN_ERR"
+};
+
struct mbus_msg {
struct mbus_msg *next;
struct timeval send_time; /* Time the message was sent, to trigger a retransmit */
Modified: common/trunk/src/mbus.h
==============================================================================
--- common/trunk/src/mbus.h (original)
+++ common/trunk/src/mbus.h Sat Mar 3 23:38:55 2007
@@ -42,13 +42,7 @@
#define MBUS_DESTINATION_NOT_UNIQUE 3
#define MBUS_ERR_MAX 4
-static char *mbus_errlist[] = {
-"MBUS_OK",
-"MBUS_MESSAGE_LOST",
-"MBUS_DESTINATION_UNKNOWN",
-"MBUS_DESTINATION_NOT_UNIQUE",
-"MBUS_UNKOWN_ERR"
-};
+extern char mbus_errlist[][30];
struct mbus;
More information about the Sumover-dev
mailing list