From 8498b91851192781ec9ed2dd8420226001473ef7 Mon Sep 17 00:00:00 2001 From: tb <> Date: Tue, 28 Nov 2017 06:55:49 +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 --- src/lib/libc/string/stpcpy.c | 4 ++-- src/lib/libc/string/strcat.c | 4 ++-- src/lib/libc/string/strcpy.c | 4 ++-- src/lib/libc/string/wcscat.c | 4 ++-- src/lib/libc/string/wcscpy.c | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/lib/libc/string') diff --git a/src/lib/libc/string/stpcpy.c b/src/lib/libc/string/stpcpy.c index d88afac345..5a86541f08 100644 --- a/src/lib/libc/string/stpcpy.c +++ b/src/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/src/lib/libc/string/strcat.c b/src/lib/libc/string/strcat.c index 646c9c2090..73da22f75d 100644 --- a/src/lib/libc/string/strcat.c +++ b/src/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/src/lib/libc/string/strcpy.c b/src/lib/libc/string/strcpy.c index 5a9001e431..290eefeabf 100644 --- a/src/lib/libc/string/strcpy.c +++ b/src/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/src/lib/libc/string/wcscat.c b/src/lib/libc/string/wcscat.c index 5ddb510fad..0525c3cb14 100644 --- a/src/lib/libc/string/wcscat.c +++ b/src/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/src/lib/libc/string/wcscpy.c b/src/lib/libc/string/wcscpy.c index 75fdb75fe4..f772752413 100644 --- a/src/lib/libc/string/wcscpy.c +++ b/src/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 * -- cgit v1.2.3-55-g6feb