From d7b4c43972638f6dee2e0137290f82201ce74515 Mon Sep 17 00:00:00 2001 From: jenglish Date: Thu, 19 Aug 2004 19:39:31 +0000 Subject: Cast argument 7 of XChangeProperty to 'const unsigned char *' (from 'const char *') to satisfy Solaris 8 Forte C compiler [Bug #1012325] --- ChangeLog | 6 ++++++ unix/tkUnixWm.c | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 76022e5..0ec1f8d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-08-19 Joe English + + * unix/tkUnixWm.c: Cast argument 7 of XChangeProperty to + 'const unsigned char *' (from 'const char *') to satisfy + Solaris 8 Forte C compiler [Bug #1012325] + 2004-08-19 Don Porter * tests/safe.test (safe-1.3): Made test less sensitve to the diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c index ffd00f9..012f713 100644 --- a/unix/tkUnixWm.c +++ b/unix/tkUnixWm.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkUnixWm.c,v 1.44 2004/08/10 18:16:00 jenglish Exp $ + * RCS: @(#) $Id: tkUnixWm.c,v 1.45 2004/08/19 19:39:33 jenglish Exp $ */ #include "tkPort.h" @@ -4321,7 +4321,7 @@ UpdateTitle(winPtr) XChangeProperty(winPtr->display, wmPtr->wrapperPtr->window, Tk_InternAtom((Tk_Window) winPtr, "_NET_WM_NAME"), XA_UTF8_STRING, 8, PropModeReplace, - string, (signed int)strlen(string)); + (const unsigned char*)string, (signed int)strlen(string)); /* * Set icon name: @@ -4335,7 +4335,8 @@ UpdateTitle(winPtr) XChangeProperty(winPtr->display, wmPtr->wrapperPtr->window, Tk_InternAtom((Tk_Window) winPtr, "_NET_WM_ICON_NAME"), XA_UTF8_STRING, 8, PropModeReplace, - wmPtr->iconName, (signed int)strlen(wmPtr->iconName)); + (const unsigned char*)wmPtr->iconName, + (signed int)strlen(wmPtr->iconName)); } } -- cgit v0.12