Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern The argument length is in bytes; don't use howmany()
details: https://anonhg.NetBSD.org/src/rev/f31f57d9db79
branches: trunk
changeset: 350891:f31f57d9db79
user: christos <christos%NetBSD.org@localhost>
date: Wed Jan 25 17:56:45 2017 +0000
description:
The argument length is in bytes; don't use howmany()
diffstat:
sys/kern/exec_elf32.c | 8 ++++----
sys/kern/exec_elf64.c | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (58 lines):
diff -r 201385e54ae5 -r f31f57d9db79 sys/kern/exec_elf32.c
--- a/sys/kern/exec_elf32.c Wed Jan 25 17:55:47 2017 +0000
+++ b/sys/kern/exec_elf32.c Wed Jan 25 17:56:45 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_elf32.c,v 1.141 2014/07/22 08:18:33 maxv Exp $ */
+/* $NetBSD: exec_elf32.c,v 1.142 2017/01/25 17:56:45 christos Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exec_elf32.c,v 1.141 2014/07/22 08:18:33 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exec_elf32.c,v 1.142 2017/01/25 17:56:45 christos Exp $");
#define ELFSIZE 32
@@ -40,8 +40,8 @@
#include <sys/module.h>
-#define ELF32_AUXSIZE (howmany(ELF_AUX_ENTRIES * sizeof(Aux32Info), \
- sizeof(Elf32_Addr)) + MAXPATHLEN + ALIGN(1))
+#define ELF32_AUXSIZE (ELF_AUX_ENTRIES * sizeof(Aux32Info) \
+ + MAXPATHLEN + ALIGN(1))
#ifdef COREDUMP
#define DEP "coredump"
diff -r 201385e54ae5 -r f31f57d9db79 sys/kern/exec_elf64.c
--- a/sys/kern/exec_elf64.c Wed Jan 25 17:55:47 2017 +0000
+++ b/sys/kern/exec_elf64.c Wed Jan 25 17:56:45 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_elf64.c,v 1.6 2014/07/22 08:18:33 maxv Exp $ */
+/* $NetBSD: exec_elf64.c,v 1.7 2017/01/25 17:56:45 christos Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exec_elf64.c,v 1.6 2014/07/22 08:18:33 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exec_elf64.c,v 1.7 2017/01/25 17:56:45 christos Exp $");
#define ELFSIZE 64
@@ -40,8 +40,8 @@
#include <sys/module.h>
-#define ELF64_AUXSIZE (howmany(ELF_AUX_ENTRIES * sizeof(Aux64Info), \
- sizeof(Elf64_Addr)) + MAXPATHLEN + ALIGN(1))
+#define ELF64_AUXSIZE (ELF_AUX_ENTRIES * sizeof(Aux64Info) \
+ + MAXPATHLEN + ALIGN(1))
#ifdef COREDUMP
#define DEP "coredump"
Home |
Main Index |
Thread Index |
Old Index