# HG changeset patch # User Mark Doliner # Date 1245658558 0 # Node ID 454d46e9cbb70dd1241f94cd6432dbc60e4309e1 # Parent c51fc4daf81b3c31c467b23bd046fd558626817f Make a function static and add two comments diff -r c51fc4daf81b -r 454d46e9cbb7 libpurple/protocols/oscar/flap_connection.c --- a/libpurple/protocols/oscar/flap_connection.c Mon Jun 22 06:29:40 2009 +0000 +++ b/libpurple/protocols/oscar/flap_connection.c Mon Jun 22 08:15:58 2009 +0000 @@ -46,7 +46,7 @@ FlapFrame *frame; frame = flap_frame_new(od, 0x01, 4); - byte_stream_put32(&frame->data, 0x00000001); + byte_stream_put32(&frame->data, 0x00000001); /* FLAP Version */ flap_connection_send(conn, frame); } @@ -64,7 +64,7 @@ GSList *tlvlist = NULL; frame = flap_frame_new(od, 0x01, 4 + 2 + 2 + length); - byte_stream_put32(&frame->data, 0x00000001); + byte_stream_put32(&frame->data, 0x00000001); /* FLAP Version */ aim_tlvlist_add_raw(&tlvlist, 0x0006, length, chipsahoy); aim_tlvlist_write(&frame->data, &tlvlist); aim_tlvlist_free(tlvlist); diff -r c51fc4daf81b -r 454d46e9cbb7 libpurple/protocols/oscar/oscar.c --- a/libpurple/protocols/oscar/oscar.c Mon Jun 22 06:29:40 2009 +0000 +++ b/libpurple/protocols/oscar/oscar.c Mon Jun 22 08:15:58 2009 +0000 @@ -1872,7 +1872,8 @@ /* size of icbmui.ocm, the largest module in AIM 3.5 */ #define AIM_MAX_FILE_SIZE 98304 -int purple_memrequest(OscarData *od, FlapConnection *conn, FlapFrame *fr, ...) { +static int purple_memrequest(OscarData *od, FlapConnection *conn, FlapFrame *fr, ...) +{ va_list ap; struct pieceofcrap *pos; guint32 offset, len;