Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/netbsd32 Remove ELF_ROUND and ELF_TRUNC (unused)....



details:   https://anonhg.NetBSD.org/src/rev/019fa9efcb5a
branches:  trunk
changeset: 797710:019fa9efcb5a
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Jul 25 16:23:13 2014 +0000

description:
Remove ELF_ROUND and ELF_TRUNC (unused). Found by my code scanner.

diffstat:

 sys/compat/netbsd32/netbsd32_exec_elf32.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r cd8f27fa3d8b -r 019fa9efcb5a sys/compat/netbsd32/netbsd32_exec_elf32.c
--- a/sys/compat/netbsd32/netbsd32_exec_elf32.c Fri Jul 25 16:15:12 2014 +0000
+++ b/sys/compat/netbsd32/netbsd32_exec_elf32.c Fri Jul 25 16:23:13 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_exec_elf32.c,v 1.36 2012/08/03 07:49:18 matt Exp $    */
+/*     $NetBSD: netbsd32_exec_elf32.c,v 1.37 2014/07/25 16:23:13 maxv Exp $    */
 /*     from: NetBSD: exec_aout.c,v 1.15 1996/09/26 23:34:46 cgd Exp */
 
 /*
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_exec_elf32.c,v 1.36 2012/08/03 07:49:18 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_exec_elf32.c,v 1.37 2014/07/25 16:23:13 maxv Exp $");
 
 #define        ELFSIZE         32
 
@@ -125,10 +125,6 @@
        return 0;
 }
 
-/* round up and down to page boundaries. */
-#define        ELF_ROUND(a, b)         (((a) + (b) - 1) & ~((b) - 1))
-#define        ELF_TRUNC(a, b)         ((a) & ~((b) - 1))
-
 /*
  * Copy arguments onto the stack in the normal way, but add some
  * extra information in case of dynamic binding.



Home | Main Index | Thread Index | Old Index