This is the mail archive of the ecos-patches@sourceware.org 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]

mk_romfs fix for 64bit architectures


Hi,

mk_romfs.c uses unsigned long as 32bit type which isn't valid on 64bit
architectures (E.G. AMD64). This patch changes it to use unsigned int
instead.

Index: packages/fs/rom/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/rom/current/ChangeLog,v
retrieving revision 1.18
diff -u -r1.18 ChangeLog
--- packages/fs/rom/current/ChangeLog	8 Jul 2005 20:13:44 -0000	1.18
+++ packages/fs/rom/current/ChangeLog	15 Feb 2006 16:02:38 -0000
@@ -1,3 +1,8 @@
+2006-02-15  Peter Korsgaard  <jacmet@sunsite.dk>
+
+	* support/mk_romfs.c (LONG): Use unsigned int instead of unsigned
+	long for 32bit type to support 64bit architectures.
+
 2005-07-08  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* cdl/romfs.cdl: Allow mk_romfs to be build even when the tests
Index: packages/fs/rom/current/support/mk_romfs.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/rom/current/support/mk_romfs.c,v
retrieving revision 1.7
diff -u -r1.7 mk_romfs.c
--- packages/fs/rom/current/support/mk_romfs.c	14 Jul 2003 13:33:49 -0000	1.7
+++ packages/fs/rom/current/support/mk_romfs.c	15 Feb 2006 16:02:38 -0000
@@ -71,7 +71,7 @@
 //==========================================================================
 
 // define LONG to be a four byte unsigned integer on the host
-#define LONG	unsigned long
+#define LONG	unsigned int
 
 // define SHORT to be a two byte unsigned integer on the host
 #define SHORT	unsigned short
-- 
Bye, Peter Korsgaard

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