Module Name:    src
Committed By:   maxv
Date:           Fri Jul 25 16:23:13 UTC 2014

Modified Files:
        src/sys/compat/netbsd32: netbsd32_exec_elf32.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/compat/netbsd32/netbsd32_exec_elf32.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/netbsd32/netbsd32_exec_elf32.c
diff -u src/sys/compat/netbsd32/netbsd32_exec_elf32.c:1.36 src/sys/compat/netbsd32/netbsd32_exec_elf32.c:1.37
--- src/sys/compat/netbsd32/netbsd32_exec_elf32.c:1.36	Fri Aug  3 07:49:18 2012
+++ src/sys/compat/netbsd32/netbsd32_exec_elf32.c	Fri Jul 25 16:23:13 2014
@@ -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 @@ ELFNAME2(netbsd32,probe_noteless)(struct
 	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.

Reply via email to