Module Name:    src
Committed By:   joerg
Date:           Tue Feb 17 20:33:40 UTC 2015

Modified Files:
        src/include: stdlib.h
        src/lib/libc/stdlib: reallocarray.c

Log Message:
Move reallocarray under _OPENBSD_SOURCE where it belongs.


To generate a diff of this commit:
cvs rdiff -u -r1.114 -r1.115 src/include/stdlib.h
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/stdlib/reallocarray.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/stdlib.h
diff -u src/include/stdlib.h:1.114 src/include/stdlib.h:1.115
--- src/include/stdlib.h:1.114	Tue Feb 17 20:29:20 2015
+++ src/include/stdlib.h	Tue Feb 17 20:33:40 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: stdlib.h,v 1.114 2015/02/17 20:29:20 joerg Exp $	*/
+/*	$NetBSD: stdlib.h,v 1.115 2015/02/17 20:33:40 joerg Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -125,6 +125,7 @@ unsigned long
 	 strtoul(const char * __restrict, char ** __restrict, int);
 #ifdef _OPENBSD_SOURCE
 long long strtonum(const char *, long long, long long, const char **);
+void	*reallocarray(void *, size_t, size_t);
 #endif
 int	 system(const char *);
 
@@ -366,7 +367,6 @@ unsigned long long int
 	strtoull_l(const char * __restrict, char ** __restrict, int, locale_t);
 
 #  if defined(_NETBSD_SOURCE)
-void	*reallocarray(void *, size_t, size_t);
 quad_t	 strtoq_l(const char * __restrict, char ** __restrict, int, locale_t);
 u_quad_t strtouq_l(const char * __restrict, char ** __restrict, int, locale_t);
 

Index: src/lib/libc/stdlib/reallocarray.c
diff -u src/lib/libc/stdlib/reallocarray.c:1.1 src/lib/libc/stdlib/reallocarray.c:1.2
--- src/lib/libc/stdlib/reallocarray.c:1.1	Thu Feb  5 16:04:35 2015
+++ src/lib/libc/stdlib/reallocarray.c	Tue Feb 17 20:33:40 2015
@@ -14,8 +14,9 @@
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
+#define _OPENBSD_SOURCE
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: reallocarray.c,v 1.1 2015/02/05 16:04:35 christos Exp $");
+__RCSID("$NetBSD: reallocarray.c,v 1.2 2015/02/17 20:33:40 joerg Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>

Reply via email to