diff options
author | otto <> | 2017-10-05 04:44:49 +0000 |
---|---|---|
committer | otto <> | 2017-10-05 04:44:49 +0000 |
commit | 1c25be50aed46b2e65dd264059575fe05a221050 (patch) | |
tree | 33a2f2eb8634fccae959c78acce36514daa577f6 /src/lib | |
parent | 7ebe85750110e5b55f9633d924503686dae4071c (diff) | |
download | openbsd-1c25be50aed46b2e65dd264059575fe05a221050.tar.gz openbsd-1c25be50aed46b2e65dd264059575fe05a221050.tar.bz2 openbsd-1c25be50aed46b2e65dd264059575fe05a221050.zip |
do not return f() where f is a void function; loop var type fix
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libc/stdlib/malloc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c index 0c22398841..0d43ad8a13 100644 --- a/src/lib/libc/stdlib/malloc.c +++ b/src/lib/libc/stdlib/malloc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: malloc.c,v 1.233 2017/10/05 04:41:43 otto Exp $ */ | 1 | /* $OpenBSD: malloc.c,v 1.234 2017/10/05 04:44:49 otto Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2008, 2010, 2011, 2016 Otto Moerbeek <otto@drijf.net> | 3 | * Copyright (c) 2008, 2010, 2011, 2016 Otto Moerbeek <otto@drijf.net> |
4 | * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> | 4 | * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> |
@@ -733,7 +733,7 @@ alloc_chunk_info(struct dir_info *d, int bits) | |||
733 | 733 | ||
734 | if (LIST_EMPTY(&d->chunk_info_list[bits])) { | 734 | if (LIST_EMPTY(&d->chunk_info_list[bits])) { |
735 | char *q; | 735 | char *q; |
736 | int i; | 736 | size_t i; |
737 | 737 | ||
738 | q = MMAP(MALLOC_PAGESIZE); | 738 | q = MMAP(MALLOC_PAGESIZE); |
739 | if (q == MAP_FAILED) | 739 | if (q == MAP_FAILED) |
@@ -1456,8 +1456,9 @@ freezero(void *ptr, size_t sz) | |||
1456 | if (ptr == NULL) | 1456 | if (ptr == NULL) |
1457 | return; | 1457 | return; |
1458 | 1458 | ||
1459 | if (!mopts.internal_funcs) | 1459 | if (!mopts.internal_funcs) { |
1460 | return freezero_p(ptr, sz); | 1460 | freezero_p(ptr, sz); |
1461 | } | ||
1461 | 1462 | ||
1462 | d = getpool(); | 1463 | d = getpool(); |
1463 | if (d == NULL) | 1464 | if (d == NULL) |