Commit 4c0f272c by Jakub Jelinek Committed by Jakub Jelinek

adaint.c (__gnat_locate_exec_on_path): Use const char * instead of char * for…

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
parent cb11f3cf
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.
......
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment