diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2021-02-08 12:00:19 +0100 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-06-15 06:19:22 -0400 |
commit | 86347b2d8d48fa2d18658d241f2df54665dac627 (patch) | |
tree | 2ce57461e8529ae6fe32a91cd15c666f2fc0e43d /gcc/ada/argv.c | |
parent | b2339160162e80fd854a9caaaf0d3dd0207ede8e (diff) | |
download | gcc-86347b2d8d48fa2d18658d241f2df54665dac627.zip gcc-86347b2d8d48fa2d18658d241f2df54665dac627.tar.gz gcc-86347b2d8d48fa2d18658d241f2df54665dac627.tar.bz2 |
[Ada] Remove const qualifier on a couple of pointed-to types
gcc/ada/
* argv.c: Add include of <stdlib.h> for the runtime.
(gnat_argv): Change type to char ** and initialize to NULL.
(gnat_envp): Likewise.
* argv-lynxos178-raven-cert.c: Add include of <stdlib.h>.
(gnat_argv): Change type to char ** and initialize to NULL.
(gnat_envp): Likewise.
Diffstat (limited to 'gcc/ada/argv.c')
-rw-r--r-- | gcc/ada/argv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/argv.c b/gcc/ada/argv.c index b5ec0df..4734415 100644 --- a/gcc/ada/argv.c +++ b/gcc/ada/argv.c @@ -44,6 +44,7 @@ #ifdef IN_RTS #include "runtime.h" +#include <stdlib.h> #include <string.h> #else #include "config.h" @@ -60,14 +61,13 @@ extern "C" { envp of the main program is saved under gnat_envp. */ int gnat_argc = 0; -const char **gnat_argv = (const char **) 0; -const char **gnat_envp = (const char **) 0; +char **gnat_argv = NULL; +char **gnat_envp = NULL; #if defined (_WIN32) && !defined (RTX) /* Note that on Windows environment the environ point to a buffer that could be reallocated if needed. It means that gnat_envp needs to be updated before using gnat_envp to point to the right environment space */ -#include <stdlib.h> /* for the environ variable definition */ #define gnat_envp (environ) #endif |