changeset 27225:454d46e9cbb7

Make a function static and add two comments
author Mark Doliner <mark@kingant.net>
date Mon, 22 Jun 2009 08:15:58 +0000
parents c51fc4daf81b
children 3cd831d4915f
files libpurple/protocols/oscar/flap_connection.c libpurple/protocols/oscar/oscar.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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;