summaryrefslogtreecommitdiff
path: root/src/Xdamage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Xdamage.c')
-rw-r--r--src/Xdamage.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Xdamage.c b/src/Xdamage.c
index a3966d6..174bb09 100644
--- a/src/Xdamage.c
+++ b/src/Xdamage.c
@@ -89,7 +89,7 @@ XDamageExtAddDisplay (XDamageExtInfo *extinfo,
UnlockDisplay (dpy);
SyncHandle ();
Xfree(info);
- return 0;
+ return NULL;
}
info->major_version = rep.majorVersion;
info->minor_version = rep.minorVersion;
@@ -372,7 +372,6 @@ XDamageAdd (Display *dpy, Drawable drawable, XserverRegion region)
{
XDamageExtDisplayInfo *info = XDamageFindDisplay (dpy);
xDamageAddReq *req;
- int len;
XDamageSimpleCheckExtension (dpy, info);
LockDisplay (dpy);