From d3eab4a38f3e53ef21eb3b6fa66ead7afecf6227 Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Tue, 13 Apr 2010 12:49:59 -0700 Subject: [PATCH] Prefer the xcb_generic_error_t we already have over casting to xEvent. Just a minor cleanup. Signed-off-by: Jamey Sharp --- src/xcb_io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xcb_io.c b/src/xcb_io.c index 4bddbf41..96def9f3 100644 --- a/src/xcb_io.c +++ b/src/xcb_io.c @@ -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; }