diff include/cmd_proto.h @ 10:cc106f278d7d

Get identify of components
author Thinker K.F. Li <thinker@branda.to>
date Tue, 24 Feb 2009 13:32:04 +0800
parents 61f27549de57
children
line wrap: on
line diff
--- a/include/cmd_proto.h	Sun Feb 22 22:43:26 2009 +0800
+++ b/include/cmd_proto.h	Tue Feb 24 13:32:04 2009 +0800
@@ -21,7 +21,7 @@
     int seq;
     cp_ccode_t code;
     int data_sz;
-    char *data;
+    unsigned char *data;
 } cp_cmd_t;
 
 typedef struct {
@@ -31,7 +31,7 @@
     int seq;
     int cnt;
     int len;
-    char *bufs[2];
+    unsigned char *bufs[2];
 } cmd_proto_t;
 
 extern cmd_proto_t *cmd_proto_new(void);
@@ -40,7 +40,7 @@
 /*
  * \return size of filled command.
  */
-extern int cmd_proto_cmd_fill(char *buf, int seq,
+extern int cmd_proto_cmd_fill(unsigned char *buf, int seq,
 			      cp_ccode_t code, int data_sz);
 extern cp_cmd_t BAD_CMD;
 extern cp_cmd_t CSUM_ERR_CMD;