Mercurial > pidgin.yaz
changeset 9571:b3711e089751
[gaim-migrate @ 10414]
send_file() is defined in socket.h on AIX 5.1 and 5.2
I'm renaming the function and making it static so it compiles.
Fixes sf bug 993771.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 22 Jul 2004 03:16:39 +0000 |
parents | 24f84b7ffe8e |
children | d066c21dcbef |
files | src/protocols/msn/slplink.c |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/msn/slplink.c Wed Jul 21 16:04:07 2004 +0000 +++ b/src/protocols/msn/slplink.c Thu Jul 22 03:16:39 2004 +0000 @@ -206,7 +206,8 @@ } } -void t_ack(MsnCmdProc *cmdproc, MsnCommand *cmd) +static void +t_ack(MsnCmdProc *cmdproc, MsnCommand *cmd) { MsnSlpMessage *slpmsg; long long real_size; @@ -388,8 +389,8 @@ msn_slplink_send_slpmsg(slplink, slpmsg); } -void -send_file(MsnSlpSession *slpsession) +static void +send_file_cb(MsnSlpSession *slpsession) { MsnSlpCall *slpcall; MsnSlpMessage *slpmsg; @@ -570,7 +571,7 @@ #define MAX_FILE_NAME_LEN 0x226 -char * +static char * gen_context(const char *file_name) { struct stat st; @@ -629,7 +630,7 @@ slpcall = msn_slp_call_new(slplink); msn_slp_call_init(slpcall, MSN_SLPCALL_DC); - slpcall->session_init_cb = send_file; + slpcall->session_init_cb = send_file_cb; slpcall->progress_cb = msn_xfer_progress_cb; slpcall->cb = msn_xfer_completed_cb; slpcall->xfer = xfer;