summaryrefslogtreecommitdiff
path: root/src/twm.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-07-16 17:06:02 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-07-16 17:06:02 -0400
commit5e1798773d837eabaa70d0fff5762397f540ee00 (patch)
treef49b196a92086ac2893b9642d6798441847666db /src/twm.c
parentb09c794f975d4b11685ac31884b8a6fd73b1ff15 (diff)
caddr_t used to be used in X code before XPointer was established; it's obsolete and less portable
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/twm.c')
-rw-r--r--src/twm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/twm.c b/src/twm.c
index 204f7b1..a10c6ce 100644
--- a/src/twm.c
+++ b/src/twm.c
@@ -469,7 +469,7 @@ main(int argc, char *argv[])
Scr->d_depth = DefaultDepth(dpy, scrnum);
Scr->d_visual = DefaultVisual(dpy, scrnum);
Scr->Root = RootWindow(dpy, scrnum);
- XSaveContext (dpy, Scr->Root, ScreenContext, (caddr_t) Scr);
+ XSaveContext (dpy, Scr->Root, ScreenContext, (XPointer) Scr);
Scr->TwmRoot.cmaps.number_cwins = 1;
Scr->TwmRoot.cmaps.cwins = malloc(sizeof(ColormapWindow *));