listen: renamed "error" to "error_r" in listen_add_host()

This commit is contained in:
Max Kellermann 2009-06-10 07:51:14 +02:00
parent 7dec2a9bcb
commit 5bb8a5eeef

View File

@ -217,7 +217,7 @@ listen_add_port(unsigned int port, GError **error)
* @return true on success * @return true on success
*/ */
static bool static bool
listen_add_host(const char *hostname, unsigned port, GError **error) listen_add_host(const char *hostname, unsigned port, GError **error_r)
{ {
#ifdef HAVE_TCP #ifdef HAVE_TCP
struct addrinfo hints, *ai, *i; struct addrinfo hints, *ai, *i;
@ -240,7 +240,7 @@ listen_add_host(const char *hostname, unsigned port, GError **error)
ret = getaddrinfo(hostname, service, &hints, &ai); ret = getaddrinfo(hostname, service, &hints, &ai);
if (ret != 0) { if (ret != 0) {
g_set_error(error, listen_quark(), ret, g_set_error(error_r, listen_quark(), ret,
"Failed to look up host \"%s\": %s", "Failed to look up host \"%s\": %s",
hostname, gai_strerror(ret)); hostname, gai_strerror(ret));
return false; return false;
@ -248,7 +248,7 @@ listen_add_host(const char *hostname, unsigned port, GError **error)
for (i = ai; i != NULL; i = i->ai_next) { for (i = ai; i != NULL; i = i->ai_next) {
success = listen_add_address(i->ai_family, i->ai_addr, success = listen_add_address(i->ai_family, i->ai_addr,
i->ai_addrlen, error); i->ai_addrlen, error_r);
if (!success) if (!success)
return false; return false;
} }
@ -261,7 +261,7 @@ listen_add_host(const char *hostname, unsigned port, GError **error)
(void)hostname; (void)hostname;
(void)port; (void)port;
g_set_error(error, listen_quark(), 0, g_set_error(error_r, listen_quark(), 0,
"TCP support is disabled"); "TCP support is disabled");
return false; return false;
#endif /* HAVE_TCP */ #endif /* HAVE_TCP */