summaryrefslogtreecommitdiff
path: root/src/xlib.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2021-05-03 20:25:43 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2021-05-05 20:25:26 -0400
commitf807ac9c786714ef4e86ad7edfa60f92baf0b4a6 (patch)
tree40b02cd21e011be2ffb9fb2c1fef897446b6da3d /src/xlib.c
parent13ca987eafed426d5347bafdf274ad59e2641650 (diff)
cppcheck style-fixes
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/xlib.c')
-rw-r--r--src/xlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xlib.c b/src/xlib.c
index 4443ffe..63f0225 100644
--- a/src/xlib.c
+++ b/src/xlib.c
@@ -32,7 +32,6 @@ _XcursorFontIsCursor (Display *dpy, Font font)
XcursorDisplayInfo *info;
XcursorBool ret;
XFontStruct *fs;
- int n;
Atom cursor;
if (!dpy || !font)
@@ -57,6 +56,7 @@ _XcursorFontIsCursor (Display *dpy, Font font)
fs = XQueryFont (dpy, font);
if (fs)
{
+ int n;
cursor = XInternAtom (dpy, "cursor", False);
for (n = 0; n < fs->n_properties; n++)
if (fs->properties[n].name == XA_FONT)