diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2017-11-28 06:55:50 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2017-11-28 06:55:50 +0000 |
commit | 0989d8403530c360cd78d7b33626839aa410b70a (patch) | |
tree | a3927923492ae0bbe0c34e5aa98fd154cfb8a5fb /lib/libc/stdio | |
parent | 85bba9afd00b157c464dd4a90b8a729798bc06fe (diff) |
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
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/mktemp.c | 4 | ||||
-rw-r--r-- | lib/libc/stdio/sprintf.c | 4 | ||||
-rw-r--r-- | lib/libc/stdio/tempnam.c | 4 | ||||
-rw-r--r-- | lib/libc/stdio/tmpnam.c | 4 | ||||
-rw-r--r-- | lib/libc/stdio/vsprintf.c | 4 |
5 files changed, 10 insertions, 10 deletions
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 <unistd.h> __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 <unistd.h> __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 |