summaryrefslogtreecommitdiffhomepage
path: root/process-packet.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2005-01-02 20:25:56 +0000
committerMatt Johnston <matt@ucc.asn.au>2005-01-02 20:25:56 +0000
commit8c1a429c446d00ad2030814e9f3d7afccc08ddf8 (patch)
tree3680041dbbb983431d917652be96d2879f1f6820 /process-packet.c
parentb5bd8591e7bc35980370ffa5dbe74d9b137e75c7 (diff)
Fixed DEBUG_TRACE macro so that we don't get semicolons left about the place
--HG-- extra : convert_revision : d928bc851e32be7bd429bf7504b148c0e4bf7e2f
Diffstat (limited to 'process-packet.c')
-rw-r--r--process-packet.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/process-packet.c b/process-packet.c
index bdec032..07fc130 100644
--- a/process-packet.c
+++ b/process-packet.c
@@ -45,10 +45,10 @@ void process_packet() {
unsigned char type;
unsigned int i;
- TRACE(("enter process_packet"));
+ TRACE(("enter process_packet"))
type = buf_getbyte(ses.payload);
- TRACE(("process_packet: packet type = %d", type));
+ TRACE(("process_packet: packet type = %d", type))
ses.lastpacket = type;
@@ -57,12 +57,12 @@ void process_packet() {
case SSH_MSG_IGNORE:
case SSH_MSG_DEBUG:
- TRACE(("received SSH_MSG_IGNORE or SSH_MSG_DEBUG"));
+ TRACE(("received SSH_MSG_IGNORE or SSH_MSG_DEBUG"))
goto out;
case SSH_MSG_UNIMPLEMENTED:
/* debugging XXX */
- TRACE(("SSH_MSG_UNIMPLEMENTED"));
+ TRACE(("SSH_MSG_UNIMPLEMENTED"))
dropbear_exit("received SSH_MSG_UNIMPLEMENTED");
case SSH_MSG_DISCONNECT:
@@ -87,7 +87,7 @@ void process_packet() {
/* Check if we should ignore this packet. Used currently only for
* KEX code, with first_kex_packet_follows */
if (ses.ignorenext) {
- TRACE(("Ignoring packet, type = %d", type));
+ TRACE(("Ignoring packet, type = %d", type))
ses.ignorenext = 0;
goto out;
}
@@ -115,7 +115,7 @@ void process_packet() {
/* TODO do something more here? */
- TRACE(("preauth unknown packet"));
+ TRACE(("preauth unknown packet"))
recv_unimplemented();
out:
@@ -123,7 +123,7 @@ out:
buf_free(ses.payload);
ses.payload = NULL;
- TRACE(("leave process_packet"));
+ TRACE(("leave process_packet"))
}