[farsight2/master] Remove abuses of error_network (into invalid args)
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:23:39 PST 2008
---
transmitters/rawudp/fs-rawudp-component.c | 2 +-
transmitters/rawudp/fs-rawudp-transmitter.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/transmitters/rawudp/fs-rawudp-component.c b/transmitters/rawudp/fs-rawudp-component.c
index 628ac26..5c15326 100644
--- a/transmitters/rawudp/fs-rawudp-component.c
+++ b/transmitters/rawudp/fs-rawudp-component.c
@@ -726,7 +726,7 @@ fs_rawudp_component_start_stun (FsRawUdpComponent *self, GError **error)
retval = getaddrinfo (self->priv->stun_ip, NULL, &hints, &result);
if (retval != 0)
{
- g_set_error (error, FS_ERROR, FS_ERROR_NETWORK,
+ g_set_error (error, FS_ERROR, FS_ERROR_INVALID_ARGUMENTS,
"Invalid IP address %s passed for STUN: %s",
self->priv->stun_ip, gai_strerror (retval));
return FALSE;
diff --git a/transmitters/rawudp/fs-rawudp-transmitter.c b/transmitters/rawudp/fs-rawudp-transmitter.c
index 82d372b..9eeaa12 100644
--- a/transmitters/rawudp/fs-rawudp-transmitter.c
+++ b/transmitters/rawudp/fs-rawudp-transmitter.c
@@ -555,7 +555,7 @@ _bind_port (
retval = getaddrinfo (ip, NULL, &hints, &result);
if (retval != 0)
{
- g_set_error (error, FS_ERROR, FS_ERROR_NETWORK,
+ g_set_error (error, FS_ERROR, FS_ERROR_INVALID_ARGUMENTS,
"Invalid IP address %s passed: %s", ip, gai_strerror (retval));
return -1;
}
--
1.5.6.5
More information about the farsight-commits
mailing list