adaint.c (__gnat_locate_exec_on_path): Use const char * instead of char * for path_val to avoid warnings.

* adaint.c (__gnat_locate_exec_on_path): Use const char * instead
	of char * for path_val to avoid warnings.

From-SVN: r232448
This commit is contained in:
Jakub Jelinek 2016-01-15 21:15:44 +01:00 committed by Jakub Jelinek
parent cb11f3cffb
commit 4c0f272cfc
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2016-01-15 Jakub Jelinek <jakub@redhat.com>
* adaint.c (__gnat_locate_exec_on_path): Use const char * instead
of char * for path_val to avoid warnings.
2016-01-06 Pierre-Marie de Rodat <derodat@adacore.com>
* gcc-interface/utils.c: Bump copyright year.

View file

@ -2791,7 +2791,7 @@ __gnat_locate_exec_on_path (char *exec_name)
WS2SC (apath_val, wapath_val, EXPAND_BUFFER_SIZE);
#else
char *path_val = getenv ("PATH");
const char *path_val = getenv ("PATH");
/* If PATH is not defined, proceed with __gnat_locate_exec anyway, so we can
find files that contain directory names. */