diff options
author | 2017-11-28 06:55:49 +0000 | |
---|---|---|
committer | 2017-11-28 06:55:49 +0000 | |
commit | e34cb67ca6a03d6ed8f381b6dd30bd8428efd463 (patch) | |
tree | 0541aa34ee10ea60f48c1e3edaf15b1624099e7d /lib/libc/string | |
parent | document that the 'e' command is non-portable; from kshe; ok jmc@ (diff) | |
download | wireguard-openbsd-e34cb67ca6a03d6ed8f381b6dd30bd8428efd463.tar.xz wireguard-openbsd-e34cb67ca6a03d6ed8f381b6dd30bd8428efd463.zip |
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/string')
-rw-r--r-- | lib/libc/string/stpcpy.c | 4 | ||||
-rw-r--r-- | lib/libc/string/strcat.c | 4 | ||||
-rw-r--r-- | lib/libc/string/strcpy.c | 4 | ||||
-rw-r--r-- | lib/libc/string/wcscat.c | 4 | ||||
-rw-r--r-- | lib/libc/string/wcscpy.c | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/lib/libc/string/stpcpy.c b/lib/libc/string/stpcpy.c index d88afac3453..5a86541f080 100644 --- a/lib/libc/string/stpcpy.c +++ b/lib/libc/string/stpcpy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stpcpy.c,v 1.2 2014/07/09 17:08:21 naddy Exp $ */ +/* $OpenBSD: stpcpy.c,v 1.3 2017/11/28 06:55:49 tb Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -33,7 +33,7 @@ #if defined(APIWARN) __warn_references(stpcpy, - "warning: stpcpy() is dangerous; do not use it"); + "stpcpy() is dangerous; do not use it"); #endif char * diff --git a/lib/libc/string/strcat.c b/lib/libc/string/strcat.c index 646c9c20909..73da22f75da 100644 --- a/lib/libc/string/strcat.c +++ b/lib/libc/string/strcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strcat.c,v 1.9 2014/06/10 04:17:37 deraadt Exp $ */ +/* $OpenBSD: strcat.c,v 1.10 2017/11/28 06:55:49 tb Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -33,7 +33,7 @@ #if defined(APIWARN) __warn_references(strcat, - "warning: strcat() is almost always misused, please use strlcat()"); + "strcat() is almost always misused, please use strlcat()"); #endif char * diff --git a/lib/libc/string/strcpy.c b/lib/libc/string/strcpy.c index 5a9001e4310..290eefeabf5 100644 --- a/lib/libc/string/strcpy.c +++ b/lib/libc/string/strcpy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strcpy.c,v 1.9 2014/06/10 04:17:37 deraadt Exp $ */ +/* $OpenBSD: strcpy.c,v 1.10 2017/11/28 06:55:49 tb Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -33,7 +33,7 @@ #if defined(APIWARN) __warn_references(strcpy, - "warning: strcpy() is almost always misused, please use strlcpy()"); + "strcpy() is almost always misused, please use strlcpy()"); #endif char * diff --git a/lib/libc/string/wcscat.c b/lib/libc/string/wcscat.c index 5ddb510fad2..0525c3cb142 100644 --- a/lib/libc/string/wcscat.c +++ b/lib/libc/string/wcscat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wcscat.c,v 1.4 2015/09/12 16:23:14 guenther Exp $ */ +/* $OpenBSD: wcscat.c,v 1.5 2017/11/28 06:55:49 tb Exp $ */ /* $NetBSD: wcscat.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */ /*- @@ -33,7 +33,7 @@ #if defined(APIWARN) __warn_references(wcscat, - "warning: wcscat() is almost always misused, please use wcslcat()"); + "wcscat() is almost always misused, please use wcslcat()"); #endif wchar_t * diff --git a/lib/libc/string/wcscpy.c b/lib/libc/string/wcscpy.c index 75fdb75fe45..f7727524135 100644 --- a/lib/libc/string/wcscpy.c +++ b/lib/libc/string/wcscpy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wcscpy.c,v 1.4 2005/08/08 08:05:37 espie Exp $ */ +/* $OpenBSD: wcscpy.c,v 1.5 2017/11/28 06:55:49 tb Exp $ */ /* $NetBSD: wcscpy.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */ /*- @@ -33,7 +33,7 @@ #if defined(APIWARN) __warn_references(wcscpy, - "warning: wcscpy() is almost always misused, please use wcslcpy()"); + "wcscpy() is almost always misused, please use wcslcpy()"); #endif wchar_t * |