summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2004-08-19 19:39:31 (GMT)
committerjenglish <jenglish@flightlab.com>2004-08-19 19:39:31 (GMT)
commitd7b4c43972638f6dee2e0137290f82201ce74515 (patch)
tree3e83f26be78d1e6f7507cb1d92c8dc46fdef9929 /unix
parent761e7d71f0ee9ed7468499164161302214a757c5 (diff)
downloadtk-d7b4c43972638f6dee2e0137290f82201ce74515.zip
tk-d7b4c43972638f6dee2e0137290f82201ce74515.tar.gz
tk-d7b4c43972638f6dee2e0137290f82201ce74515.tar.bz2
Cast argument 7 of XChangeProperty to 'const unsigned char *'
(from 'const char *') to satisfy Solaris 8 Forte C compiler [Bug #1012325]
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixWm.c7
1 files changed, 4 insertions, 3 deletions
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));
}
}