summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/bufaux.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-09-18 13:02:22 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-09-18 13:02:22 +0000
commit73f563164bc999c0b74c0061f6c455ae40959b70 (patch)
tree7cc6320b53be944e3c78d1171471a14c1f47fbb2 /usr.bin/ssh/bufaux.c
parentadb3293fa3f3cdd41d5f911d0f3cc561838458a0 (diff)
A few signedness fixes for harmless situations; markus@ ok
Diffstat (limited to 'usr.bin/ssh/bufaux.c')
-rw-r--r--usr.bin/ssh/bufaux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/bufaux.c b/usr.bin/ssh/bufaux.c
index 37cc27ff64b..1df15b54835 100644
--- a/usr.bin/ssh/bufaux.c
+++ b/usr.bin/ssh/bufaux.c
@@ -37,7 +37,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: bufaux.c,v 1.29 2003/04/08 20:21:28 itojun Exp $");
+RCSID("$OpenBSD: bufaux.c,v 1.30 2003/09/18 13:02:21 miod Exp $");
#include <openssl/bn.h>
#include "bufaux.h"
@@ -80,7 +80,7 @@ buffer_put_bignum(Buffer *buffer, BIGNUM *value)
void
buffer_get_bignum(Buffer *buffer, BIGNUM *value)
{
- int bits, bytes;
+ u_int bits, bytes;
u_char buf[2], *bin;
/* Get the number for bits. */
@@ -103,10 +103,10 @@ buffer_get_bignum(Buffer *buffer, BIGNUM *value)
void
buffer_put_bignum2(Buffer *buffer, BIGNUM *value)
{
- int bytes = BN_num_bytes(value) + 1;
+ u_int bytes = BN_num_bytes(value) + 1;
u_char *buf = xmalloc(bytes);
int oi;
- int hasnohigh = 0;
+ u_int hasnohigh = 0;
buf[0] = '\0';
/* Get the value of in binary */