summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXXStubs.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-17 08:36:55 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-17 08:36:55 (GMT)
commit1f915d51ed45d9f68cb4933a1c31b68c254ed242 (patch)
tree76eaf621e1859748736c351fd39fdd66844ade58 /macosx/tkMacOSXXStubs.c
parent9039a4d498efadb7fcf4c44e9802e336e8ea0d28 (diff)
downloadtk-1f915d51ed45d9f68cb4933a1c31b68c254ed242.zip
tk-1f915d51ed45d9f68cb4933a1c31b68c254ed242.tar.gz
tk-1f915d51ed45d9f68cb4933a1c31b68c254ed242.tar.bz2
Another round of type-casts for ckalloc() calls. Makes C++ compilers even more happy. Mainly for MacOS code.
Diffstat (limited to 'macosx/tkMacOSXXStubs.c')
-rw-r--r--macosx/tkMacOSXXStubs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/tkMacOSXXStubs.c b/macosx/tkMacOSXXStubs.c
index abbfb38..a02e71b 100644
--- a/macosx/tkMacOSXXStubs.c
+++ b/macosx/tkMacOSXXStubs.c
@@ -204,7 +204,7 @@ TkpOpenDisplay(
TkMacOSXDisplayChanged(display);
- gMacDisplay = ckalloc(sizeof(TkDisplay));
+ gMacDisplay = (TkDisplay *)ckalloc(sizeof(TkDisplay));
/*
* This is the quickest way to make sure that all the *Init flags get
@@ -232,8 +232,8 @@ XkbOpenDisplay(
int *minor_rtrn,
int *reason)
{
- Display *display = ckalloc(sizeof(Display));
- Screen *screen = ckalloc(sizeof(Screen));
+ Display *display = (Display *)ckalloc(sizeof(Display));
+ Screen *screen = (Screen *)ckalloc(sizeof(Screen));
int fd = 0;
NSArray *cgVers;
static char vendor[25] = "";
@@ -260,7 +260,7 @@ XkbOpenDisplay(
screen->white_pixel = 0x00FFFFFF | PIXEL_MAGIC << 24;
screen->ext_data = (XExtData *) &maxBounds;
- screen->root_visual = ckalloc(sizeof(Visual));
+ screen->root_visual = (Visual *)ckalloc(sizeof(Visual));
screen->root_visual->visualid = 0;
screen->root_visual->c_class = TrueColor;
screen->root_visual->red_mask = 0x00FF0000;