diff options
Diffstat (limited to 'malloc/tst-valloc.c')
-rw-r--r-- | malloc/tst-valloc.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/malloc/tst-valloc.c b/malloc/tst-valloc.c index 7958d51822..643a0dda4a 100644 --- a/malloc/tst-valloc.c +++ b/malloc/tst-valloc.c @@ -3,19 +3,21 @@ #include <stdio.h> #include <stdlib.h> -int main(void) +int +main (void) { char *p; int pagesize = getpagesize (); int i; p = valloc (pagesize); - i = (int) p; + i = (long int) p; - if ((i & (pagesize-1)) != 0) { - fprintf (stderr, "Alignment problem: valloc returns %p\n", p); - exit(1); - } + if ((i & (pagesize-1)) != 0) + { + fprintf (stderr, "Alignment problem: valloc returns %p\n", p); + exit (1); + } return 0; } |