]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgfortran: Don't quote ENV_PPID and ENV_BASE in caf/shmem/shared_memory.c
authorJohn David Anglin <danglin@gcc.gnu.org>
Wed, 15 Jul 2026 22:55:54 +0000 (18:55 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Wed, 15 Jul 2026 22:55:54 +0000 (18:55 -0400)
ENV_PPID and ENV_BASE are declared previously as strings and they
don't need to be quoted.

2026-06-12  John David Anglin  <danglin@gcc.gnu.org>

libgfortran/ChangeLog:

* caf/shmem/shared_memory.c (shared_memory_set_env): Don't
quote ENV_PPID.
(shared_memory_init) Don't quote ENV_BASE.

libgfortran/caf/shmem/shared_memory.c

index fc9bdfbd55818aec55139e9f803c00edd3fe918d..6cf0c80eeb686b8e4c3823af4464e47dda5191c6 100644 (file)
@@ -75,7 +75,7 @@ shared_memory_set_env (pid_t pid)
   int res;
 
   /* HP-UX / Legacy Fallback using putenv */
-  res = snprintf (buffer, 28, "%s=%d", "ENV_PPID", (int)pid);
+  res = snprintf (buffer, 28, "%s=%d", ENV_PPID, (int)pid);
   if (res != -1)
     putenv (buffer);
 #endif
@@ -268,7 +268,7 @@ shared_memory_init (shared_memory_act *mem, size_t size)
       int res;
 
       /* HP-UX / Legacy Fallback using putenv */
-      res = snprintf (buffer, 28, "%s=%p", "ENV_BASE", mem->glbl.base);
+      res = snprintf (buffer, 28, "%s=%p", ENV_BASE, mem->glbl.base);
       if (res != -1)
        putenv (buffer);
 #endif