summaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authortschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-12 07:56:41 +0000
committertschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-12 07:56:41 +0000
commitbc9457364b4b9a847c91e35a0aa5fc3b73df53a0 (patch)
treeebce5cb70615568df5ff32a5b8be94af98513905 /libgfortran
parent6d68866aa1d170538a28b7a78e61b4d4ff45a0b9 (diff)
downloadgcc-bc9457364b4b9a847c91e35a0aa5fc3b73df53a0.tar.gz
Typo fixes for "Don't assume __secure_getenv is available"
libgfortran/ * runtime/environ.c (weak_secure_getenv): Fix "__secure_gettime" vs. "__secure_getenv" typo. (secure_getenv): Fix "HAVE__SECURE_GETENV" vs. "HAVE___SECURE_GETENV" typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@247952 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog7
-rw-r--r--libgfortran/runtime/environ.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 337daafa5a8..6b7da0a299a 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,10 @@
+2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
+
+ * runtime/environ.c (weak_secure_getenv): Fix "__secure_gettime"
+ vs. "__secure_getenv" typo.
+ (secure_getenv): Fix "HAVE__SECURE_GETENV"
+ vs. "HAVE___SECURE_GETENV" typo.
+
2017-05-11 Janne Blomqvist <jb@gcc.gnu.org>
* libgfortran.h: HAVE_SECURE_GETENV: Don't check
diff --git a/libgfortran/runtime/environ.c b/libgfortran/runtime/environ.c
index 969dcdfcf21..f0a593e6074 100644
--- a/libgfortran/runtime/environ.c
+++ b/libgfortran/runtime/environ.c
@@ -40,13 +40,13 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#if SUPPORTS_WEAKREF && defined(HAVE___SECURE_GETENV)
static char* weak_secure_getenv (const char*)
- __attribute__((__weakref__("__secure_gettime")));
+ __attribute__((__weakref__("__secure_getenv")));
#endif
char *
secure_getenv (const char *name)
{
-#if SUPPORTS_WEAKREF && defined(HAVE__SECURE_GETENV)
+#if SUPPORTS_WEAKREF && defined(HAVE___SECURE_GETENV)
if (weak_secure_getenv)
return weak_secure_getenv (name);
#endif