[gaim-migrate @ 15530]

Tue, 07 Feb 2006 19:36:40 +0000

author
Thomas Butter <tbutter@users.sourceforge.net>
date
Tue, 07 Feb 2006 19:36:40 +0000
changeset 13168
bd3bf83ff337
parent 13167
d5426d234c20
child 13169
c09d2d5dba91

[gaim-migrate @ 15530]
rlaager noted that gaim_network_get_local_ip_from_fd is no longer used

src/network.c file | annotate | diff | comparison | revisions
--- a/src/network.c	Tue Feb 07 19:32:22 2006 +0000
+++ b/src/network.c	Tue Feb 07 19:36:40 2006 +0000
@@ -89,28 +89,6 @@
 	return gaim_prefs_get_string("/core/network/public_ip");
 }
 
-static const char *
-gaim_network_get_local_ip_from_fd(int fd)
-{
-	struct sockaddr_in addr;
-	socklen_t len;
-	static char ip[16];
-	const char *tmp;
-
-	g_return_val_if_fail(fd >= 0, NULL);
-
-	len = sizeof(addr);
-	if (getsockname(fd, (struct sockaddr *) &addr, &len) == -1) {
-		gaim_debug_warning("network", "getsockname: %s\n", strerror(errno));
-		return NULL;
-	}
-
-	tmp = inet_ntoa(addr.sin_addr);
-	strncpy(ip, tmp, sizeof(ip));
-
-	return ip;
-}
-
 const char *
 gaim_network_get_local_system_ip(int fd)
 {

mercurial