diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-16 17:06:02 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-16 17:06:02 -0400 |
commit | 5e1798773d837eabaa70d0fff5762397f540ee00 (patch) | |
tree | f49b196a92086ac2893b9642d6798441847666db /src/twm.c | |
parent | b09c794f975d4b11685ac31884b8a6fd73b1ff15 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 *)); |