summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-06-25 23:20:18 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-06-25 23:20:18 +0000
commit9b4139742f146f6048af147da136e8d71c52605e (patch)
treea83b4a77075e48bab708fa0c4944871939cf89c6
parentc5a7f4fdf98ec9067166f1643408a64acf308ff5 (diff)
- itojun@cvs.openbsd.org 2002/06/24 15:49:22
[msg.c] printf type pedant
-rw-r--r--ChangeLog5
-rw-r--r--msg.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index ec65ef8df..97c0442e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,9 @@
13 - markus@cvs.openbsd.org 2002/06/24 14:55:38 13 - markus@cvs.openbsd.org 2002/06/24 14:55:38
14 [authfile.c kex.c ssh-agent.c] 14 [authfile.c kex.c ssh-agent.c]
15 cat to (void) when output from buffer_get_X is ignored 15 cat to (void) when output from buffer_get_X is ignored
16 - itojun@cvs.openbsd.org 2002/06/24 15:49:22
17 [msg.c]
18 printf type pedant
16 19
1720020625 2020020625
18 - (stevesk) [INSTALL acconfig.h configure.ac defines.h] remove --with-rsh 21 - (stevesk) [INSTALL acconfig.h configure.ac defines.h] remove --with-rsh
@@ -1112,4 +1115,4 @@
1112 - (stevesk) entropy.c: typo in debug message 1115 - (stevesk) entropy.c: typo in debug message
1113 - (djm) ssh-keygen -i needs seeded RNG; report from markus@ 1116 - (djm) ssh-keygen -i needs seeded RNG; report from markus@
1114 1117
1115$Id: ChangeLog,v 1.2277 2002/06/25 23:19:13 mouring Exp $ 1118$Id: ChangeLog,v 1.2278 2002/06/25 23:20:18 mouring Exp $
diff --git a/msg.c b/msg.c
index 103aed2cd..7275c847d 100644
--- a/msg.c
+++ b/msg.c
@@ -22,7 +22,7 @@
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */ 23 */
24#include "includes.h" 24#include "includes.h"
25RCSID("$OpenBSD: msg.c,v 1.2 2002/06/19 00:27:55 deraadt Exp $"); 25RCSID("$OpenBSD: msg.c,v 1.3 2002/06/24 15:49:22 itojun Exp $");
26 26
27#include "buffer.h" 27#include "buffer.h"
28#include "getput.h" 28#include "getput.h"
@@ -36,7 +36,7 @@ msg_send(int fd, u_char type, Buffer *m)
36 u_char buf[5]; 36 u_char buf[5];
37 u_int mlen = buffer_len(m); 37 u_int mlen = buffer_len(m);
38 38
39 debug3("msg_send: type %d", type); 39 debug3("msg_send: type %u", (unsigned int)type & 0xff);
40 40
41 PUT_32BIT(buf, mlen + 1); 41 PUT_32BIT(buf, mlen + 1);
42 buf[4] = type; /* 1st byte of payload is mesg-type */ 42 buf[4] = type; /* 1st byte of payload is mesg-type */
@@ -59,7 +59,7 @@ msg_recv(int fd, Buffer *m)
59 if (res != sizeof(buf)) { 59 if (res != sizeof(buf)) {
60 if (res == 0) 60 if (res == 0)
61 return -1; 61 return -1;
62 fatal("msg_recv: read: header %d", res); 62 fatal("msg_recv: read: header %ld", (long)res);
63 } 63 }
64 msg_len = GET_32BIT(buf); 64 msg_len = GET_32BIT(buf);
65 if (msg_len > 256 * 1024) 65 if (msg_len > 256 * 1024)