From 1e4765ffa2cc484d6fa2c51e54ba927cbae67f13 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Fri, 16 Jan 2015 16:48:51 +0000 Subject: Move to the universe. review by millert, binary checking process with doug, concept with guenther --- src/lib/libc/stdlib/malloc.c | 4 ++-- src/lib/libc/stdlib/random.c | 5 +---- src/lib/libc/stdlib/realpath.c | 6 +++--- 3 files changed, 6 insertions(+), 9 deletions(-) (limited to 'src/lib/libc/stdlib') diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c index 57d35b80b6..69ae877aba 100644 --- a/src/lib/libc/stdlib/malloc.c +++ b/src/lib/libc/stdlib/malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc.c,v 1.172 2015/01/05 21:04:04 tedu Exp $ */ +/* $OpenBSD: malloc.c,v 1.173 2015/01/16 16:48:51 deraadt Exp $ */ /* * Copyright (c) 2008, 2010, 2011 Otto Moerbeek * Copyright (c) 2012 Matthew Dempsky @@ -26,7 +26,7 @@ /* #define MALLOC_STATS */ #include -#include +#include /* PAGE_SHIFT ALIGN */ #include #include #include diff --git a/src/lib/libc/stdlib/random.c b/src/lib/libc/stdlib/random.c index 96cced9a20..e293648ecd 100644 --- a/src/lib/libc/stdlib/random.c +++ b/src/lib/libc/stdlib/random.c @@ -1,4 +1,4 @@ -/* $OpenBSD: random.c,v 1.28 2014/12/16 20:51:32 sthen Exp $ */ +/* $OpenBSD: random.c,v 1.29 2015/01/16 16:48:51 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. @@ -28,9 +28,6 @@ * SUCH DAMAGE. */ -#include -#include -#include #include #include #include diff --git a/src/lib/libc/stdlib/realpath.c b/src/lib/libc/stdlib/realpath.c index e06db59088..7b70b9ddfb 100644 --- a/src/lib/libc/stdlib/realpath.c +++ b/src/lib/libc/stdlib/realpath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: realpath.c,v 1.18 2014/10/19 03:56:28 doug Exp $ */ +/* $OpenBSD: realpath.c,v 1.19 2015/01/16 16:48:51 deraadt Exp $ */ /* * Copyright (c) 2003 Constantin S. Svintsoff * @@ -27,13 +27,13 @@ * SUCH DAMAGE. */ -#include #include #include #include #include #include +#include /* A slightly modified copy of this file exists in libexec/ld.so */ @@ -156,7 +156,7 @@ realpath(const char *path, char *resolved) goto err; } if (S_ISLNK(sb.st_mode)) { - if (symlinks++ > MAXSYMLINKS) { + if (symlinks++ > SYMLOOP_MAX) { errno = ELOOP; goto err; } -- cgit v1.2.3-55-g6feb