Typo fixes for "Don't assume __secure_getenv is available"
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 12 May 2017 07:56:41 +0000 (09:56 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Fri, 12 May 2017 07:56:41 +0000 (09:56 +0200)
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.

From-SVN: r247952

libgfortran/ChangeLog
libgfortran/runtime/environ.c

index 337daafa5a84a6d63c1f0a3b8141ca511c8414cf..6b7da0a299a822cebe74e518b163b9b20c345fdf 100644 (file)
@@ -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
index 969dcdfcf21c5a07a6d0611e71877918768ac75a..f0a593e6074b451397499552b32218a61709a0aa 100644 (file)
@@ -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