summaryrefslogtreecommitdiff
path: root/src/xcb_errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xcb_errors.c')
-rw-r--r--src/xcb_errors.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xcb_errors.c b/src/xcb_errors.c
index 7cffe85..f33966a 100644
--- a/src/xcb_errors.c
+++ b/src/xcb_errors.c
@@ -152,7 +152,7 @@ const char *xcb_errors_get_name_for_major_code(xcb_errors_context_t *ctx,
info = info->next;
if (info == NULL)
- return unknown_major_code[major_code];
+ return get_strings_entry(unknown_major_code, major_code);
return info->name;
}
@@ -184,7 +184,7 @@ const char *xcb_errors_get_name_for_event(xcb_errors_context_t *ctx,
info = info->next;
if (info == NULL)
- return unknown_event_code[event_code];
+ return get_strings_entry(unknown_event_code, event_code);
return get_strings_entry(info->static_info.strings_events, event_code - info->first_event);
}
@@ -201,7 +201,7 @@ const char *xcb_errors_get_name_for_error(xcb_errors_context_t *ctx,
info = info->next;
if (info == NULL)
- return unknown_error_code[error_code];
+ return get_strings_entry(unknown_error_code, error_code);
return get_strings_entry(info->static_info.strings_errors, error_code - info->first_error);
}