From 1c25be50aed46b2e65dd264059575fe05a221050 Mon Sep 17 00:00:00 2001 From: otto <> Date: Thu, 5 Oct 2017 04:44:49 +0000 Subject: do not return f() where f is a void function; loop var type fix --- src/lib/libc/stdlib/malloc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/lib') 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 @@ -/* $OpenBSD: malloc.c,v 1.233 2017/10/05 04:41:43 otto Exp $ */ +/* $OpenBSD: malloc.c,v 1.234 2017/10/05 04:44:49 otto Exp $ */ /* * Copyright (c) 2008, 2010, 2011, 2016 Otto Moerbeek * Copyright (c) 2012 Matthew Dempsky @@ -733,7 +733,7 @@ alloc_chunk_info(struct dir_info *d, int bits) if (LIST_EMPTY(&d->chunk_info_list[bits])) { char *q; - int i; + size_t i; q = MMAP(MALLOC_PAGESIZE); if (q == MAP_FAILED) @@ -1456,8 +1456,9 @@ freezero(void *ptr, size_t sz) if (ptr == NULL) return; - if (!mopts.internal_funcs) - return freezero_p(ptr, sz); + if (!mopts.internal_funcs) { + freezero_p(ptr, sz); + } d = getpool(); if (d == NULL) -- cgit v1.2.3-55-g6feb