summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authorbcook <bcook@openbsd.org>2014-08-24 16:11:39 +0000
committerbcook <bcook@openbsd.org>2014-08-24 16:11:39 +0000
commitee900073fe038e874d482e8c9ba723dec516354b (patch)
treedec129895feb4995f958ffc12a75f5ae60a50702 /lib/libssl/src
parentInclude <sys/time.h> to get struct timeval (diff)
downloadwireguard-openbsd-ee900073fe038e874d482e8c9ba723dec516354b.tar.xz
wireguard-openbsd-ee900073fe038e874d482e8c9ba723dec516354b.zip
constify strerror return value
There is no intention to modify the string returned by strerror and doing so is forbidden by the standard. from Jonas 'Sortie' Termansen ok tedu@ deraadt@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/crypto/err/err.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/crypto/err/err.c b/lib/libssl/src/crypto/err/err.c
index 571bfaed167..0802249da45 100644
--- a/lib/libssl/src/crypto/err/err.c
+++ b/lib/libssl/src/crypto/err/err.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: err.c,v 1.38 2014/07/11 08:44:48 jsing Exp $ */
+/* $OpenBSD: err.c,v 1.39 2014/08/24 16:11:39 bcook Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -596,7 +596,7 @@ build_SYS_str_reasons(void)
if (str->string == NULL) {
char (*dest)[LEN_SYS_STR_REASON] =
&(strerror_tab[i - 1]);
- char *src = strerror(i);
+ const char *src = strerror(i);
if (src != NULL) {
strlcpy(*dest, src, sizeof *dest);
str->string = *dest;