Skip to content

Commit

Permalink
uri-util: Two ATTR_NULL specifications were misplaced or wrong.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanbosch authored and GitLab committed May 16, 2016
1 parent f95afa9 commit 14383bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/uri-util.c
Expand Up @@ -432,7 +432,7 @@ uri_parse_reg_name(struct uri_parser *parser,
}

static int uri_do_parse_host_name_dns(struct uri_parser *parser,
string_t *host_name) ATTR_NULL(2, 3)
string_t *host_name) ATTR_NULL(2)
{
const unsigned char *first, *part;
int ret;
Expand Down Expand Up @@ -616,7 +616,7 @@ uri_parse_ip_literal(struct uri_parser *parser, string_t *literal,
}

int uri_parse_host(struct uri_parser *parser,
struct uri_host *host, bool dns_name) ATTR_NULL(2)
struct uri_host *host, bool dns_name)
{
const unsigned char *preserve;
struct in_addr ip4;
Expand Down

0 comments on commit 14383bf

Please sign in to comment.