Mercurial > pidgin.yaz
comparison plugins/icq/socketmanager.c @ 1977:7b3f1eb1ef7d
[gaim-migrate @ 1987]
updated icqlib. fixed import dialog (watch debug window for errors). adam's (not mid's) patch for oscar.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 09 Jun 2001 14:46:51 +0000 |
parents | 30f7c8f9c6b9 |
children |
comparison
equal
deleted
inserted
replaced
1976:24aed1c31342 | 1977:7b3f1eb1ef7d |
---|---|
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | 2 |
3 /* | 3 /* |
4 * $Id: socketmanager.c 1987 2001-06-09 14:46:51Z warmenhoven $ | |
5 * | |
4 * Copyright (C) 1998-2001, Denis V. Dmitrienko <denis@null.net> and | 6 * Copyright (C) 1998-2001, Denis V. Dmitrienko <denis@null.net> and |
5 * Bill Soudan <soudan@kde.org> | 7 * Bill Soudan <soudan@kde.org> |
6 * | 8 * |
7 * This program is free software; you can redistribute it and/or modify | 9 * This program is free software; you can redistribute it and/or modify |
8 * it under the terms of the GNU General Public License as published by | 10 * it under the terms of the GNU General Public License as published by |
70 | 72 |
71 /** | 73 /** |
72 * Creates a new socket by accepting a connection from a listening | 74 * Creates a new socket by accepting a connection from a listening |
73 * socket. | 75 * socket. |
74 */ | 76 */ |
75 int icq_SocketAccept(int listens, struct sockaddr *addr, unsigned int *addrlen) | 77 int icq_SocketAccept(int listens, struct sockaddr *addr, socklen_t *addrlen) |
76 { | 78 { |
77 int s = accept(listens, addr, addrlen); | 79 int s = accept(listens, addr, addrlen); |
78 | 80 |
79 icq_SocketAlloc(s); | 81 icq_SocketAlloc(s); |
80 | 82 |