fix warnings from gcc compilation with my mad CFLAGS

This commit is contained in:
Benjamin Otte
2009-06-29 18:24:08 +02:00
parent 4b8ad50fc4
commit afd63c3281
12 changed files with 119 additions and 106 deletions

View File

@@ -35,12 +35,12 @@ socket_address_to_string (GSocketAddress *address)
{
GInetAddress *inet_address;
char *str, *res;
int port;
int the_port;
inet_address = g_inet_socket_address_get_address (G_INET_SOCKET_ADDRESS (address));
str = g_inet_address_to_string (inet_address);
port = g_inet_socket_address_get_port (G_INET_SOCKET_ADDRESS (address));
res = g_strdup_printf ("%s:%d", str, port);
the_port = g_inet_socket_address_get_port (G_INET_SOCKET_ADDRESS (address));
res = g_strdup_printf ("%s:%d", str, the_port);
g_free (str);
return res;
}