Prefer the xcb_generic_error_t we already have over casting to xEvent.

Just a minor cleanup.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
This commit is contained in:
Jamey Sharp 2010-04-13 12:49:59 -07:00
parent 75ea8c3793
commit d3eab4a38f

View file

@ -477,10 +477,10 @@ Status _XReply(Display *dpy, xReply *rep, int extra, Bool discard)
/* do not die on "no such font", "can't allocate",
"can't grab" failures */
switch(err->errorCode)
switch(error->error_code)
{
case BadName:
switch(err->majorCode)
switch(error->major_code)
{
case X_LookupColor:
case X_AllocNamedColor:
@ -489,7 +489,7 @@ Status _XReply(Display *dpy, xReply *rep, int extra, Bool discard)
}
break;
case BadFont:
if(err->majorCode == X_QueryFont) {
if(error->major_code == X_QueryFont) {
free(error);
return 0;
}