From 1b49bf99d3eb594282f0862eb4a0e8c45e64a9b5 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 22 Oct 2002 19:35:20 +0000 Subject: [PATCH] (x_set_name, x_set_title): `icon.value' has unsigned char. --- src/xfns.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 */ -- 2.39.2