From: Stefan Monnier Date: Tue, 22 Oct 2002 19:35:20 +0000 (+0000) Subject: (x_set_name, x_set_title): `icon.value' has unsigned char. X-Git-Tag: ttn-vms-21-2-B4~12748 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1b49bf99d3eb594282f0862eb4a0e8c45e64a9b5;p=emacs.git (x_set_name, x_set_title): `icon.value' has unsigned char. --- diff --git a/src/xfns.c b/src/xfns.c index c20c0d0480d..52902208735 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -2471,9 +2471,9 @@ x_set_name (f, name, explicit) XSetWMIconName (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), &icon); #endif /* not USE_X_TOOLKIT */ if (!NILP (f->icon_name) - && icon.value != SDATA (f->icon_name)) + && icon.value != (unsigned char *) SDATA (f->icon_name)) xfree (icon.value); - if (text.value != SDATA (name)) + if (text.value != (unsigned char *) SDATA (name)) xfree (text.value); } #else /* not HAVE_X11R4 */ @@ -2578,9 +2578,9 @@ x_set_title (f, name, old_name) XSetWMIconName (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), &icon); #endif /* not USE_X_TOOLKIT */ if (!NILP (f->icon_name) - && icon.value != SDATA (f->icon_name)) + && icon.value != (unsigned char *) SDATA (f->icon_name)) xfree (icon.value); - if (text.value != SDATA (name)) + if (text.value != (unsigned char *) SDATA (name)) xfree (text.value); } #else /* not HAVE_X11R4 */