Mercurial > pidgin
comparison libpurple/protocols/oscar/flap_connection.c @ 30390:553cd883a29a
Removed '#if 0/endif' blocks. Some of them have the form of TODO, but
most of them are years old, so that shouldn't be a big deal.
author | ivan.komarov@soc.pidgin.im |
---|---|
date | Wed, 28 Jul 2010 19:37:26 +0000 |
parents | 6d2ba42595fe |
children | bbb27d65681f |
comparison
equal
deleted
inserted
replaced
30389:43dae0cda901 | 30390:553cd883a29a |
---|---|
929 flap_connection_schedule_destroy(conn, | 929 flap_connection_schedule_destroy(conn, |
930 OSCAR_DISCONNECT_INVALID_DATA, NULL); | 930 OSCAR_DISCONNECT_INVALID_DATA, NULL); |
931 break; | 931 break; |
932 } | 932 } |
933 | 933 |
934 /* Verify the sequence number sent by the server. */ | |
935 #if 0 | |
936 /* TODO: Need to initialize conn->seqnum_in somewhere before we can use this. */ | |
937 if (aimutil_get16(&conn->header[1]) != conn->seqnum_in++) | |
938 { | |
939 /* Received an out-of-order FLAP! */ | |
940 flap_connection_schedule_destroy(conn, | |
941 OSCAR_DISCONNECT_INVALID_DATA, NULL); | |
942 break; | |
943 } | |
944 #endif | |
945 | |
946 /* Initialize a new temporary FlapFrame for incoming data */ | 934 /* Initialize a new temporary FlapFrame for incoming data */ |
947 conn->buffer_incoming.channel = aimutil_get8(&conn->header[1]); | 935 conn->buffer_incoming.channel = aimutil_get8(&conn->header[1]); |
948 conn->buffer_incoming.seqnum = aimutil_get16(&conn->header[2]); | 936 conn->buffer_incoming.seqnum = aimutil_get16(&conn->header[2]); |
949 conn->buffer_incoming.data.len = aimutil_get16(&conn->header[4]); | 937 conn->buffer_incoming.data.len = aimutil_get16(&conn->header[4]); |
950 conn->buffer_incoming.data.data = g_new(guint8, conn->buffer_incoming.data.len); | 938 conn->buffer_incoming.data.data = g_new(guint8, conn->buffer_incoming.data.len); |