Skip to content

Commit f76b5a0

Browse files
authored
Fix error list (#99)
1 parent aabc24e commit f76b5a0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

source/http.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# pragma GCC diagnostic ignored "-Wpointer-to-int-cast"
2828
#endif
2929

30-
#define AWS_DEFINE_ERROR_INFO_HTTP(CODE, STR) AWS_DEFINE_ERROR_INFO(CODE, STR, "aws-c-http")
30+
#define AWS_DEFINE_ERROR_INFO_HTTP(CODE, STR) [(CODE)-0x0800] = AWS_DEFINE_ERROR_INFO(CODE, STR, "aws-c-http")
3131

3232
/* clang-format off */
3333
static struct aws_error_info s_errors[] = {
@@ -73,9 +73,6 @@ static struct aws_error_info s_errors[] = {
7373
AWS_DEFINE_ERROR_INFO_HTTP(
7474
AWS_ERROR_HTTP_CONNECTION_MANAGER_VENDED_CONNECTION_UNDERFLOW,
7575
"Release called when the connection manager's vended connection count was zero"),
76-
AWS_DEFINE_ERROR_INFO_HTTP(
77-
AWS_ERROR_HTTP_END_RANGE,
78-
"Not a real error and should never be seen."),
7976
};
8077
/* clang-format on */
8178

0 commit comments

Comments
 (0)