summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranton <>2024-07-15 05:24:02 +0000
committeranton <>2024-07-15 05:24:02 +0000
commit4586d54027e4b3be982129cc8b64dc8b6cfc1edd (patch)
tree0256b016490d71dfb5840696580d1cfcf5076714
parentac917198631b03aff2948b9b53202ff2bbf7464e (diff)
downloadopenbsd-4586d54027e4b3be982129cc8b64dc8b6cfc1edd.tar.gz
openbsd-4586d54027e4b3be982129cc8b64dc8b6cfc1edd.tar.bz2
openbsd-4586d54027e4b3be982129cc8b64dc8b6cfc1edd.zip
enable warnings and apply a dash of knfmt
-rw-r--r--src/regress/lib/libc/elf_aux_info/Makefile2
-rw-r--r--src/regress/lib/libc/elf_aux_info/elf_aux_info.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/regress/lib/libc/elf_aux_info/Makefile b/src/regress/lib/libc/elf_aux_info/Makefile
index 2885fb1851..58dc58a830 100644
--- a/src/regress/lib/libc/elf_aux_info/Makefile
+++ b/src/regress/lib/libc/elf_aux_info/Makefile
@@ -1,3 +1,5 @@
1PROG=elf_aux_info 1PROG=elf_aux_info
2 2
3WARNINGS=yes
4
3.include <bsd.regress.mk> 5.include <bsd.regress.mk>
diff --git a/src/regress/lib/libc/elf_aux_info/elf_aux_info.c b/src/regress/lib/libc/elf_aux_info/elf_aux_info.c
index 481085d6d9..14870e253c 100644
--- a/src/regress/lib/libc/elf_aux_info/elf_aux_info.c
+++ b/src/regress/lib/libc/elf_aux_info/elf_aux_info.c
@@ -10,7 +10,6 @@ main(void)
10 int a; 10 int a;
11 unsigned long b; 11 unsigned long b;
12 12
13
14 /* Should always succeed */ 13 /* Should always succeed */
15 if (elf_aux_info(AT_PAGESZ, &a, sizeof(a))) 14 if (elf_aux_info(AT_PAGESZ, &a, sizeof(a)))
16 ret |= 1; 15 ret |= 1;