summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-04-20 23:11:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-04-20 23:11:21 +0000
commitba51e724ec02b5e7d8978b9605feee465c22bb5b (patch)
treecac57796bd4bedd025ad80dab1c92bf2d69ac615 /sys/kern
parentc53375f1a9c0324c99014ac2ce6efa13c829480c (diff)
#define ELFROUNDSIZE 4 /* XXX Should it be sizeof(Elf_Word)? */
Now that alpha is fixed, we can use sizeof().
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/exec_elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c
index 3fdd8d7a31b..08e777884b4 100644
--- a/sys/kern/exec_elf.c
+++ b/sys/kern/exec_elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.c,v 1.147 2018/12/06 18:59:31 guenther Exp $ */
+/* $OpenBSD: exec_elf.c,v 1.148 2019/04/20 23:11:20 deraadt Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@ -957,7 +957,7 @@ int coredump_note_elf(struct proc *, void *, size_t *);
int coredump_writenote_elf(struct proc *, void *, Elf_Note *,
const char *, void *);
-#define ELFROUNDSIZE 4 /* XXX Should it be sizeof(Elf_Word)? */
+#define ELFROUNDSIZE sizeof(Elf_Word)
#define elfround(x) roundup((x), ELFROUNDSIZE)
int