This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cs8900 fix


A gcc warning said missing parantheses in a '&' operation
introduced in the latest commit to this file.


Index: devs/eth/cl//cs8900a/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/cl/cs8900a/current/ChangeLog,v
retrieving revision 1.7
diff -u -r1.7 ChangeLog
--- devs/eth/cl//cs8900a/current/ChangeLog	12 Apr 2003 03:50:18 -0000	1.7
+++ devs/eth/cl//cs8900a/current/ChangeLog	30 Apr 2003 10:27:59 -0000
@@ -1,3 +1,8 @@
+2003-04-30  Jani Monoses	<jani@iv.ro>
+
+	* src/if_cs8900a.c (cs8900a_send): Put parens around bitwise and
+	operation so it's not always false.
+	
 2003-04-12  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* src/if_cs8900a.c (cs8900a_send): Allow for data not being 16-bit
Index: devs/eth/cl//cs8900a/current/src/if_cs8900a.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/cl/cs8900a/current/src/if_cs8900a.c,v
retrieving revision 1.7
diff -u -r1.7 if_cs8900a.c
--- devs/eth/cl//cs8900a/current/src/if_cs8900a.c	12 Apr 2003 03:50:19 -0000	1.7
+++ devs/eth/cl//cs8900a/current/src/if_cs8900a.c	30 Apr 2003 10:27:59 -0000
@@ -482,7 +482,7 @@
                 len--;
                 odd_byte = false;
             }
-            if ((CYG_ADDRESS)data & 0x1 == 0) {
+            if (((CYG_ADDRESS)data & 0x1) == 0) {
                 /* Aligned on 16-bit boundary, so output contiguous words. */
                 sdata = (cyg_uint16 *)data;
                 while (len > 1) {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]