From 53ad07633e85cf98e1a63ef178b3ac3f8ebc68a7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 17 Mar 2009 14:58:24 +0000 Subject: [PATCH] re-indented for clarity --- src/packet.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/packet.c b/src/packet.c index c50bb78..aeac39b 100644 --- a/src/packet.c +++ b/src/packet.c @@ -985,18 +985,14 @@ _libssh2_packet_ask(LIBSSH2_SESSION * session, unsigned char packet_type, while (packet) { if (packet->data[0] == packet_type - && (packet->data_len >= (match_ofs + match_len)) && (!match_buf - || - (memcmp - (packet-> - data + - match_ofs, - match_buf, - match_len) - == 0))) { + && (packet->data_len >= (match_ofs + match_len)) + && (!match_buf || + (memcmp(packet->data + match_ofs, match_buf, + match_len) == 0))) { *data = packet->data; *data_len = packet->data_len; + /* unlink struct */ if (packet->prev) { packet->prev->next = packet->next; } else {