changeset 723:0fd32a552ea5

Fix a few compile warnings
author Matt Johnston <matt@ucc.asn.au>
date Sat, 23 Mar 2013 23:17:01 +0800
parents 4a274f47eabd
children 35f5f64a59c5
files cli-agentfwd.c cli-kex.c svr-main.c svr-x11fwd.c
diffstat 4 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/cli-agentfwd.c	Sat Mar 23 23:16:06 2013 +0800
+++ b/cli-agentfwd.c	Sat Mar 23 23:17:01 2013 +0800
@@ -156,8 +156,6 @@
 		goto out;
 	}
 	
-	TRACE(("agent_request readlen is %d", readlen))
-
 	buf_resize(inbuf, readlen);
 	buf_setpos(inbuf, 0);
 	ret = atomicio(read, fd, buf_getwriteptr(inbuf, readlen), readlen);
@@ -167,7 +165,6 @@
 	}
 	buf_incrwritepos(inbuf, readlen);
 	buf_setpos(inbuf, 0);
-	TRACE(("agent_request success, length %d", readlen))
 
 out:
 	if (payload)
--- a/cli-kex.c	Sat Mar 23 23:16:06 2013 +0800
+++ b/cli-kex.c	Sat Mar 23 23:17:01 2013 +0800
@@ -309,7 +309,6 @@
 		buf_putbytes(line, algoname, algolen);
 		buf_putbyte(line, ' ');
 		len = line->size - line->pos;
-		TRACE(("keybloblen %d, len %d", keybloblen, len))
 		/* The only failure with base64 is buffer_overflow, but buf_getwriteptr
 		 * will die horribly in the case anyway */
 		base64_encode(keyblob, keybloblen, buf_getwriteptr(line, len), &len);
--- a/svr-main.c	Sat Mar 23 23:16:06 2013 +0800
+++ b/svr-main.c	Sat Mar 23 23:17:01 2013 +0800
@@ -271,7 +271,7 @@
 				goto out;
 			}
 
-			addrandom(&fork_ret, sizeof(fork_ret));
+			addrandom((void*)&fork_ret, sizeof(fork_ret));
 			
 			if (fork_ret > 0) {
 
--- a/svr-x11fwd.c	Sat Mar 23 23:16:06 2013 +0800
+++ b/svr-x11fwd.c	Sat Mar 23 23:17:01 2013 +0800
@@ -175,7 +175,7 @@
 	m_free(chansess->x11authprot);
 	m_free(chansess->x11authcookie);
 
-	TRACE(("chansess %x", chansess))
+	TRACE(("chansess %p", chansess))
 	if (chansess->x11listener != NULL) {
 		remove_listener(chansess->x11listener);
 		chansess->x11listener = NULL;