# HG changeset patch # User Jim Blandy # Date 717144184 0 # Node ID d2360c870787420f196daed718045484f6a94e41 # Parent ab2d88e2505bda524d8a11cbcd710beaf068c82c * xrdb.c (x_get_resource): Cast the value being assigned to ret_value->addr, rather than ret_value->addr itself; only GCC allows you to cast lvalues. diff -r ab2d88e2505b -r d2360c870787 src/xrdb.c --- a/src/xrdb.c Tue Sep 22 06:23:30 1992 +0000 +++ b/src/xrdb.c Tue Sep 22 06:43:04 1992 +0000 @@ -400,7 +400,7 @@ && (type == expected_type)) { if (type == x_rm_string) - (char *) ret_value->addr = value.addr; + ret_value->addr = (char *) value.addr; else bcopy (value.addr, ret_value->addr, ret_value->size);