diff options
author | anton <> | 2024-07-15 05:24:02 +0000 |
---|---|---|
committer | anton <> | 2024-07-15 05:24:02 +0000 |
commit | 4586d54027e4b3be982129cc8b64dc8b6cfc1edd (patch) | |
tree | 0256b016490d71dfb5840696580d1cfcf5076714 | |
parent | ac917198631b03aff2948b9b53202ff2bbf7464e (diff) | |
download | openbsd-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/Makefile | 2 | ||||
-rw-r--r-- | src/regress/lib/libc/elf_aux_info/elf_aux_info.c | 1 |
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 @@ | |||
1 | PROG=elf_aux_info | 1 | PROG=elf_aux_info |
2 | 2 | ||
3 | WARNINGS=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; |