[uClibc-cvs] CVS uClibc/ldso/ldso/sh64

CVS User jocke jocke at codepoet.org
Thu Sep 23 07:05:40 UTC 2004


Update of /var/cvs/uClibc/ldso/ldso/sh64
In directory nail:/tmp/cvs-serv8320/sh64

Modified Files:
	dl-sysdep.h 
Log Message:
Make do_rem() safe. From Peter Kjellerstedt.


--- /var/cvs/uClibc/ldso/ldso/sh64/dl-sysdep.h	2004/02/17 10:55:58	1.3
+++ /var/cvs/uClibc/ldso/ldso/sh64/dl-sysdep.h	2004/09/23 07:05:39	1.4
@@ -25,7 +25,7 @@
 struct elf_resolve;
 extern unsigned long _dl_linux_resolver(struct elf_resolve * tpnt, int reloc_entry);
 
-#define do_rem(result, n, base)  result = (n % base)
+#define do_rem(result, n, base) ((result) = (n) % (base))
 
 /* 4096 bytes alignment */
 #define PAGE_ALIGN 0xfffff000



More information about the uClibc-cvs mailing list