diff options
author | Jamey Sharp <jamey@minilop.net> | 2010-04-13 12:49:59 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2010-04-13 13:12:06 -0700 |
commit | d3eab4a38f3e53ef21eb3b6fa66ead7afecf6227 (patch) | |
tree | 578da2533c04e03de768129037b3408b3a514941 | |
parent | 75ea8c37935ccc911557d16a303ba595b8ab106b (diff) |
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>
-rw-r--r-- | src/xcb_io.c | 6 |
1 files 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; } |