diff src/cmd_proto.c @ 3:e410832c3280

Issue of avr-ld. - For some unknown reason, avr-ld can not handle multiple objects well. - Fixed by compile all source at once.
author Thinker K.F. Li <thinker@branda.to>
date Sun, 22 Feb 2009 01:40:36 +0800
parents f7c60e525801
children cc106f278d7d
line wrap: on
line diff
--- a/src/cmd_proto.c	Sat Feb 21 23:06:50 2009 +0800
+++ b/src/cmd_proto.c	Sun Feb 22 01:40:36 2009 +0800
@@ -12,10 +12,12 @@
     ST_WAIT_CSUM
 };
 
+#define BUF_SZ 512
+
 cmd_proto_t *cmd_proto_new(void) {
     cmd_proto_t *cp;
 
-    cp = (cmd_proto_t *)malloc(sizeof(cmd_proto_t) + 512);
+    cp = (cmd_proto_t *)malloc(sizeof(cmd_proto_t) + BUF_SZ);
     if(cp == NULL)
 	return NULL;