From 0989d8403530c360cd78d7b33626839aa410b70a Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Tue, 28 Nov 2017 06:55:50 +0000 Subject: GNU ld has prefixed the contents of .gnu.warning.SYMBOL sections with "warning: " since 2003, so the messages themselves need not contain the prefix anymore. From Scott Cheloha ok jca, deraadt --- lib/libc/stdio/mktemp.c | 4 ++-- lib/libc/stdio/sprintf.c | 4 ++-- lib/libc/stdio/tempnam.c | 4 ++-- lib/libc/stdio/tmpnam.c | 4 ++-- lib/libc/stdio/vsprintf.c | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'lib/libc/stdio') diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c index 4b81d5d4715..ef9a1836107 100644 --- a/lib/libc/stdio/mktemp.c +++ b/lib/libc/stdio/mktemp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mktemp.c,v 1.38 2015/09/13 08:31:47 guenther Exp $ */ +/* $OpenBSD: mktemp.c,v 1.39 2017/11/28 06:55:49 tb Exp $ */ /* * Copyright (c) 1996-1998, 2008 Theo de Raadt * Copyright (c) 1997, 2008-2009 Todd C. Miller @@ -119,7 +119,7 @@ _mktemp(char *path) } __warn_references(mktemp, - "warning: mktemp() possibly used unsafely; consider using mkstemp()"); + "mktemp() possibly used unsafely; consider using mkstemp()"); char * mktemp(char *path) diff --git a/lib/libc/stdio/sprintf.c b/lib/libc/stdio/sprintf.c index 51ddf95f947..935f9d77690 100644 --- a/lib/libc/stdio/sprintf.c +++ b/lib/libc/stdio/sprintf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sprintf.c,v 1.18 2015/10/01 02:32:07 guenther Exp $ */ +/* $OpenBSD: sprintf.c,v 1.19 2017/11/28 06:55:49 tb Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -39,7 +39,7 @@ #if defined(APIWARN) __warn_references(sprintf, - "warning: sprintf() is often misused, please use snprintf()"); + "sprintf() is often misused, please use snprintf()"); #endif int diff --git a/lib/libc/stdio/tempnam.c b/lib/libc/stdio/tempnam.c index 854b871cb40..d2c848c8fbb 100644 --- a/lib/libc/stdio/tempnam.c +++ b/lib/libc/stdio/tempnam.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tempnam.c,v 1.19 2015/08/31 02:53:57 guenther Exp $ */ +/* $OpenBSD: tempnam.c,v 1.20 2017/11/28 06:55:49 tb Exp $ */ /* * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. @@ -37,7 +37,7 @@ #include __warn_references(tempnam, - "warning: tempnam() possibly used unsafely; consider using mkstemp()"); + "tempnam() possibly used unsafely; consider using mkstemp()"); char * tempnam(const char *dir, const char *pfx) diff --git a/lib/libc/stdio/tmpnam.c b/lib/libc/stdio/tmpnam.c index d6dc10eec03..52cd43d947b 100644 --- a/lib/libc/stdio/tmpnam.c +++ b/lib/libc/stdio/tmpnam.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmpnam.c,v 1.11 2015/08/31 02:53:57 guenther Exp $ */ +/* $OpenBSD: tmpnam.c,v 1.12 2017/11/28 06:55:49 tb Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 * The Regents of the University of California. All rights reserved. @@ -37,7 +37,7 @@ #include __warn_references(tmpnam, - "warning: tmpnam() possibly used unsafely; consider using mkstemp()"); + "tmpnam() possibly used unsafely; consider using mkstemp()"); char * tmpnam(char *s) diff --git a/lib/libc/stdio/vsprintf.c b/lib/libc/stdio/vsprintf.c index 308ff375ad2..2c8001ddcbe 100644 --- a/lib/libc/stdio/vsprintf.c +++ b/lib/libc/stdio/vsprintf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vsprintf.c,v 1.16 2009/11/09 00:18:28 kurt Exp $ */ +/* $OpenBSD: vsprintf.c,v 1.17 2017/11/28 06:55:49 tb Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -38,7 +38,7 @@ #if defined(APIWARN) __warn_references(vsprintf, - "warning: vsprintf() is often misused, please use vsnprintf()"); + "vsprintf() is often misused, please use vsnprintf()"); #endif int -- cgit v1.2.3