Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix compile errors and failing test.

  • Loading branch information...
commit c730176ef96a51c5a6591cd9ce656f7770c15f63 1 parent e8f205e
@joshthecoder authored
Showing with 2 additions and 3 deletions.
  1. +1 −2  include/irc.h
  2. +1 −1  test/test-parse-illegal.c
View
3  include/irc.h
@@ -38,9 +38,8 @@ struct irc_parser_s {
// Private.
unsigned char state;
char data[512];
- int data_len;
+ int len;
irc_message_t message;
- int msg_len;
};
// Initialize an IRC message parser instance.
View
2  test/test-parse-illegal.c
@@ -18,7 +18,7 @@ static int parse_message(const char* msg) {
// Messages cannot have whitespace as the first byte.
// This should cause an PARSER_ILLEGAL_TOKEN error code.
TEST_IMPL(parse_illegal_first_byte_whitespace) {
- ASSERT(parse_message("BAD\r\n") == PARSER_ILLEGAL_TOKEN);
+ ASSERT(parse_message(" BAD\r\n") == PARSER_ILLEGAL_TOKEN);
return 0;
}
Please sign in to comment.
Something went wrong with that request. Please try again.