diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-11-16 19:13:03 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-11-16 19:13:03 -0800 |
commit | 98c179ea912e9e420451adeb9bab4b462cab836c (patch) | |
tree | e97a3a8a7e85b40ed161731d2cbca1359c47ec82 /src/Xdamage.c | |
parent | 51cbd370a2fc0d671398d7572c29f00cae34a86f (diff) |
Variable scope reduction as recommended by cppcheck
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Xdamage.c')
-rw-r--r-- | src/Xdamage.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Xdamage.c b/src/Xdamage.c index 9bec8df..fe184f5 100644 --- a/src/Xdamage.c +++ b/src/Xdamage.c @@ -49,7 +49,6 @@ XDamageExtAddDisplay (XDamageExtInfo *extinfo, const char *ext_name) { XDamageExtDisplayInfo *info; - int ev; info = (XDamageExtDisplayInfo *) Xmalloc (sizeof (XDamageExtDisplayInfo)); if (!info) return NULL; @@ -66,7 +65,7 @@ XDamageExtAddDisplay (XDamageExtInfo *extinfo, xDamageQueryVersionReq *req; XESetCloseDisplay (dpy, info->codes->extension, XDamageCloseDisplay); - for (ev = info->codes->first_event; + for (int ev = info->codes->first_event; ev < info->codes->first_event + XDamageNumberEvents; ev++) { |