# HG changeset patch # User Mark Doliner # Date 1090466199 0 # Node ID b3711e08975153c67c4e71a40a52d62b8c5524f2 # Parent 24f84b7ffe8e17dfb9eb08ac0342ed7a777f0816 [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 diff -r 24f84b7ffe8e -r b3711e089751 src/protocols/msn/slplink.c --- 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;