summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalex <>2014-05-07 20:07:59 +0000
committerhalex <>2014-05-07 20:07:59 +0000
commit2442223a850a28980708189468c6c6597698e398 (patch)
treefb381b0d8855b5850b47d973b8f5cdc65ffa0b4f
parentdd9b16d5489a1196ae0fcbe4315fe0122b042d7d (diff)
downloadopenbsd-2442223a850a28980708189468c6c6597698e398.tar.gz
openbsd-2442223a850a28980708189468c6c6597698e398.tar.bz2
openbsd-2442223a850a28980708189468c6c6597698e398.zip
comment style fix
ok crickets@
-rw-r--r--src/lib/libc/stdlib/malloc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c
index 40bf665249..6f2a48ba4c 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.159 2014/05/01 04:08:13 tedu Exp $ */ 1/* $OpenBSD: malloc.c,v 1.160 2014/05/07 20:07:59 halex Exp $ */
2/* 2/*
3 * Copyright (c) 2008, 2010, 2011 Otto Moerbeek <otto@drijf.net> 3 * Copyright (c) 2008, 2010, 2011 Otto Moerbeek <otto@drijf.net>
4 * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> 4 * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org>
@@ -1378,7 +1378,8 @@ realloc(void *ptr, size_t size)
1378} 1378}
1379 1379
1380 1380
1381/* this is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX 1381/*
1382 * This is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX
1382 * if both s1 < MUL_NO_OVERFLOW and s2 < MUL_NO_OVERFLOW 1383 * if both s1 < MUL_NO_OVERFLOW and s2 < MUL_NO_OVERFLOW
1383 */ 1384 */
1384#define MUL_NO_OVERFLOW (1UL << (sizeof(size_t) * 4)) 1385#define MUL_NO_OVERFLOW (1UL << (sizeof(size_t) * 4))