Mercurial > gub
changeset 6511:728bffca309a
librestrict: build fix for gcc-5.2.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Mon, 14 Mar 2016 23:03:50 +0100 |
parents | fc4f6d2163bd |
children | ccc20ae889ca |
files | librestrict/restrict.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/librestrict/restrict.c Mon Mar 14 22:53:34 2016 +0100 +++ b/librestrict/restrict.c Mon Mar 14 23:03:50 2016 +0100 @@ -191,9 +191,9 @@ static void initialize (void) { - char *restrict; + char *restr; char *verbosity_string = getenv ("LIBRESTRICT_VERBOSE"); - + if (verbosity_string) { verbosity = atoi (verbosity_string); @@ -201,14 +201,14 @@ verbosity = 1; } executable_name = get_executable_name (); - restrict = get_allowed_prefix (executable_name); - if (restrict) + restr = get_allowed_prefix (executable_name); + if (restr) { char *allow = getenv ("LIBRESTRICT_ALLOW"); if (verbosity > 1) fprintf (stderr, "librestrict:warning:%s: allow: %s\n", __PRETTY_FUNCTION__, allow); - add_allowed_file (restrict); + add_allowed_file (restr); if (allow) add_allowed_path (allow); add_allowed_file ("/tmp");