Mercurial > emacs
comparison src/xrdb.c @ 1200:d2360c870787
* 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.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Tue, 22 Sep 1992 06:43:04 +0000 |
parents | 94d76dbb5ce6 |
children | 517c3893ec5b |
comparison
equal
deleted
inserted
replaced
1199:ab2d88e2505b | 1200:d2360c870787 |
---|---|
398 | 398 |
399 if (XrmQGetResource (rdb, namelist, classlist, &type, &value) == True | 399 if (XrmQGetResource (rdb, namelist, classlist, &type, &value) == True |
400 && (type == expected_type)) | 400 && (type == expected_type)) |
401 { | 401 { |
402 if (type == x_rm_string) | 402 if (type == x_rm_string) |
403 (char *) ret_value->addr = value.addr; | 403 ret_value->addr = (char *) value.addr; |
404 else | 404 else |
405 bcopy (value.addr, ret_value->addr, ret_value->size); | 405 bcopy (value.addr, ret_value->addr, ret_value->size); |
406 | 406 |
407 return value.size; | 407 return value.size; |
408 } | 408 } |