diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-01-02 15:58:57 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-01-02 15:58:57 (GMT) |
commit | 55091eb14914c24bbae66062f600e2ec17b3352b (patch) | |
tree | fbf3d1dda6b1c4120ea8de8abb0cca9a64c695e1 /xlib | |
parent | 73d95cf6f972ef7af3b41b2d80f1f7ba62f41878 (diff) | |
download | tk-55091eb14914c24bbae66062f600e2ec17b3352b.zip tk-55091eb14914c24bbae66062f600e2ec17b3352b.tar.gz tk-55091eb14914c24bbae66062f600e2ec17b3352b.tar.bz2 |
Use more X11 macro's, in stead of accessing fields directly. Mostly backported from 8.7
Diffstat (limited to 'xlib')
-rw-r--r-- | xlib/xutil.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xlib/xutil.c b/xlib/xutil.c index d80b742..3654fcd 100644 --- a/xlib/xutil.c +++ b/xlib/xutil.c @@ -32,12 +32,12 @@ Atom XInternAtom( Display *display, - _Xconst char *atom_name, - Bool only_if_exists) + TCL_UNUSED(_Xconst char *), + TCL_UNUSED(Bool)) { static Atom atom = XA_LAST_PREDEFINED; - display->request++; + LastKnownRequestProcessed(display)++; return ++atom; } @@ -64,7 +64,7 @@ XGetVisualInfo( XVisualInfo *vinfo_template, int *nitems_return) { - XVisualInfo *info = ckalloc(sizeof(XVisualInfo)); + XVisualInfo *info = (XVisualInfo *)ckalloc(sizeof(XVisualInfo)); info->visual = DefaultVisual(display, 0); info->visualid = info->visual->visualid; |