From e3b7dcb837b68b3aecb7020801bc9a4eb295d6d6 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Mon, 3 Sep 2018 19:12:54 -0400 Subject: [PATCH] Rename get_addr_info to build_addr_info --- client/http_socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/http_socket.c b/client/http_socket.c index d2ef041..1c0640d 100644 --- a/client/http_socket.c +++ b/client/http_socket.c @@ -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; }