Rename get_addr_info to build_addr_info

This commit is contained in:
Nick Krichevsky 2018-09-03 19:12:54 -04:00
parent f02048e866
commit e3b7dcb837

View file

@ -80,7 +80,7 @@ void free_basic_request(struct http_message req) {
*
* @return The result of getadddrinfo. See `man getaddrinfo` for details.
*/
static int get_addr_info(const char *hostname, int port, struct addrinfo **info) {
static int build_addr_info(const char *hostname, int port, struct addrinfo **info) {
struct addrinfo hints;
// Force all hints to be null
memset(&hints, 0, sizeof(struct addrinfo));
@ -108,7 +108,7 @@ static int get_addr_info(const char *hostname, int port, struct addrinfo **info)
*/
enum socket_read_result send_request(struct http_message req, struct response_info *res_info) {
struct addrinfo *addr_info;
int addr_status = get_addr_info(req.address, req.port, &addr_info);
int addr_status = build_addr_info(req.address, req.port, &addr_info);
if (addr_status != 0) {
return RESULT_READ_ERROR;
}