summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libc/elf_aux_info/elf_aux_info.c3
1 files changed, 2 insertions, 1 deletions
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 14870e253c..e78d282283 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
@@ -9,6 +9,7 @@ main(void)
9 int ret = 0; 9 int ret = 0;
10 int a; 10 int a;
11 unsigned long b; 11 unsigned long b;
12 unsigned long long c;
12 13
13 /* Should always succeed */ 14 /* Should always succeed */
14 if (elf_aux_info(AT_PAGESZ, &a, sizeof(a))) 15 if (elf_aux_info(AT_PAGESZ, &a, sizeof(a)))
@@ -17,7 +18,7 @@ main(void)
17 fprintf(stderr, "AT_PAGESZ %d\n", a); 18 fprintf(stderr, "AT_PAGESZ %d\n", a);
18 19
19 /* Wrong size */ 20 /* Wrong size */
20 if (elf_aux_info(AT_PAGESZ, &b, sizeof(b)) != EINVAL) 21 if (elf_aux_info(AT_PAGESZ, &c, sizeof(c)) != EINVAL)
21 ret |= 2; 22 ret |= 2;
22 23
23 /* Invalid request */ 24 /* Invalid request */