comparison libfaim/aim_conn.c @ 889:e1da6a6ec42b

[gaim-migrate @ 899] Oscar works again committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 12 Sep 2000 20:21:36 +0000
parents 595ac7759563
children 5e6ca3dd4d02
comparison
equal deleted inserted replaced
888:38ffd1faa31a 889:e1da6a6ec42b
6 * 6 *
7 */ 7 */
8 8
9 #include <faim/aim.h> 9 #include <faim/aim.h>
10 10
11 #ifndef _WIN32
11 #include <netdb.h> 12 #include <netdb.h>
12 #include <sys/socket.h> 13 #include <sys/socket.h>
13 #include <netinet/in.h> 14 #include <netinet/in.h>
15 #endif
14 16
15 /* 17 /*
16 * Clears out connection list, killing remaining connections. 18 * Clears out connection list, killing remaining connections.
17 */ 19 */
18 faim_internal void aim_connrst(struct aim_session_t *sess) 20 faim_internal void aim_connrst(struct aim_session_t *sess)
200 * 202 *
201 * We put this here to catch every case. 203 * We put this here to catch every case.
202 * 204 *
203 */ 205 */
204 206
205 for(i=0;i<strlen(dest);i++) { 207 for(i=0;i<(int)strlen(dest);i++) {
206 if (dest[i] == ':') { 208 if (dest[i] == ':') {
207 port = atoi(&(dest[i+1])); 209 port = atoi(&(dest[i+1]));
208 break; 210 break;
209 } 211 }
210 } 212 }