summaryrefslogtreecommitdiff
path: root/src/display.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/display.c
parent13ca987eafed426d5347bafdf274ad59e2641650 (diff)
downloadxorg-lib-libXcursor-f807ac9c786714ef4e86ad7edfa60f92baf0b4a6.tar.gz
cppcheck style-fixes
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/display.c')
-rw-r--r--src/display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display.c b/src/display.c
index 2c56ba9..a61b5fd 100644
--- a/src/display.c
+++ b/src/display.c
@@ -72,7 +72,7 @@ _XcursorCloseDisplay (Display *dpy, XExtCodes *codes)
static int
_XcursorDefaultParseBool (char *v)
{
- char c0, c1;
+ char c0;
c0 = *v;
if (isupper ((int)c0))
@@ -83,7 +83,7 @@ _XcursorDefaultParseBool (char *v)
return 0;
if (c0 == 'o')
{
- c1 = v[1];
+ char c1 = v[1];
if (isupper ((int)c1))
c1 = (char) tolower (c1);
if (c1 == 'n')