openbsd-ports/lang/gcc/4.1/patches/patch-gcc_prefix_c

36 lines
1.0 KiB
Plaintext

$OpenBSD: patch-gcc_prefix_c,v 1.3 2005/05/21 10:34:43 espie Exp $
--- gcc/prefix.c.orig Fri Mar 18 16:24:19 2005
+++ gcc/prefix.c Mon May 16 17:43:13 2005
@@ -99,7 +99,7 @@ get_key_value (char *key)
#endif
if (prefix == 0)
- prefix = getenv (temp = concat (key, "_ROOT", NULL));
+ prefix = getenv (temp = concat (key, "_ROOT", (void *)0));
if (prefix == 0)
prefix = std_prefix;
@@ -223,7 +223,7 @@ translate_name (char *name)
together. */
old_name = name;
- name = concat (prefix, &name[keylen + 1], NULL);
+ name = concat (prefix, &name[keylen + 1], (void *)0);
free (old_name);
}
@@ -261,11 +261,11 @@ update_path (const char *path, const cha
if (key[0] != '$')
{
- key = concat ("@", key, NULL);
+ key = concat ("@", key, (void *)0);
free_key = true;
}
- result = concat (key, &path[len], NULL);
+ result = concat (key, &path[len], (void *)0);
if (free_key)
free ((char *) key);
result = translate_name (result);