diff options
author | Max Kellermann <max@duempel.org> | 2009-06-10 07:51:14 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-06-10 07:51:14 +0200 |
commit | 5bb8a5eeef1994238d90670160f6bec199d5dfab (patch) | |
tree | cc13e9895e381ba236842e746c7122852ae78dd3 | |
parent | 7dec2a9bcb3a46883fd6835ec6b008663a8a9439 (diff) | |
download | mpd-5bb8a5eeef1994238d90670160f6bec199d5dfab.tar.gz mpd-5bb8a5eeef1994238d90670160f6bec199d5dfab.tar.xz mpd-5bb8a5eeef1994238d90670160f6bec199d5dfab.zip |
listen: renamed "error" to "error_r" in listen_add_host()
-rw-r--r-- | src/listen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/listen.c b/src/listen.c index d8652eb67..173ec762d 100644 --- a/src/listen.c +++ b/src/listen.c @@ -217,7 +217,7 @@ listen_add_port(unsigned int port, GError **error) * @return true on success */ 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 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); 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", hostname, gai_strerror(ret)); 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) { success = listen_add_address(i->ai_family, i->ai_addr, - i->ai_addrlen, error); + i->ai_addrlen, error_r); if (!success) return false; } @@ -261,7 +261,7 @@ listen_add_host(const char *hostname, unsigned port, GError **error) (void)hostname; (void)port; - g_set_error(error, listen_quark(), 0, + g_set_error(error_r, listen_quark(), 0, "TCP support is disabled"); return false; #endif /* HAVE_TCP */ |