Mercurial > pidgin.yaz
comparison src/util.c @ 4650:4938d12f6d48
[gaim-migrate @ 4961]
This is mostly just me cleaning up some of my mess.
The one important change is... I set what is believed to
be the UTF8 capability flag for ICQ. I'm hoping this
will tell ICQ2002 and more recent that we are able to
accept UTF8 messages. Please test this and let us know
what happens.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 05 Mar 2003 05:10:47 +0000 |
parents | 42d53c416bb9 |
children | 6e3b8a8a143f |
comparison
equal
deleted
inserted
replaced
4649:f04e2a5b637a | 4650:4938d12f6d48 |
---|---|
1305 g_free(utf8); | 1305 g_free(utf8); |
1306 } | 1306 } |
1307 | 1307 |
1308 return(NULL); | 1308 return(NULL); |
1309 } | 1309 } |
1310 | |
1311 char *gaim_getip_from_fd(int fd) | |
1312 { | |
1313 struct sockaddr addr; | |
1314 socklen_t namelen = sizeof(addr); | |
1315 | |
1316 if (getsockname(fd, &addr, &namelen)) | |
1317 return NULL; | |
1318 | |
1319 return g_strdup(inet_ntoa(((struct sockaddr_in *)&addr)->sin_addr)); | |
1320 } |