There was a variable declaration after a statement
authorluis
Thu, 29 Nov 2007 11:58:02 +0100
changeset 319 4b331759169a
parent 318 cef08361bab1
child 320 f82e758840bd
There was a variable declaration after a statement
include/can_driver.h
--- a/include/can_driver.h	Fri Nov 23 08:47:48 2007 +0100
+++ b/include/can_driver.h	Thu Nov 29 11:58:02 2007 +0100
@@ -57,8 +57,9 @@
 static inline void print_message(Message *m)
 {
     int i;
+    UNS8 fc;
     printf("id:%02x ", m->cob_id.w & 0x7F);
-    UNS8 fc = m->cob_id.w >> 7;
+    fc = m->cob_id.w >> 7;
     switch(fc)
     {
         case SYNC: