Skip to content

Commit

Permalink
Add some return info comments to encode_resource_records() and encode…
Browse files Browse the repository at this point in the history
…_msg()
  • Loading branch information
chmorgan committed Aug 31, 2017
1 parent 1c9b79b commit 7c8f7d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ void resolver_process(struct Message* msg)
}
}

/* @return 0 upon failure, 1 upon success */
int encode_resource_records(struct ResourceRecord* rr, uint8_t** buffer)
{
int i;
Expand Down Expand Up @@ -625,6 +626,7 @@ int encode_resource_records(struct ResourceRecord* rr, uint8_t** buffer)
return 0;
}

/* @return 0 upon failure, 1 upon success */
int encode_msg(struct Message* msg, uint8_t** buffer)
{
struct Question* q;
Expand Down

0 comments on commit 7c8f7d8

Please sign in to comment.