=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/Attic/bufaux.c,v retrieving revision 1.17.4.3 retrieving revision 1.24 diff -u -r1.17.4.3 -r1.24 --- src/usr.bin/ssh/Attic/bufaux.c 2002/05/17 00:03:23 1.17.4.3 +++ src/usr.bin/ssh/Attic/bufaux.c 2002/03/26 15:23:40 1.24 @@ -37,7 +37,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: bufaux.c,v 1.17.4.3 2002/05/17 00:03:23 miod Exp $"); +RCSID("$OpenBSD: bufaux.c,v 1.24 2002/03/26 15:23:40 markus Exp $"); #include #include "bufaux.h" @@ -137,18 +137,10 @@ BN_bin2bn(bin, len, value); xfree(bin); } + /* - * Returns integers from the buffer (msb first). + * Returns an integer from the buffer (4 bytes, msb first). */ - -u_short -buffer_get_short(Buffer *buffer) -{ - u_char buf[2]; - buffer_get(buffer, (char *) buf, 2); - return GET_16BIT(buf); -} - u_int buffer_get_int(Buffer *buffer) { @@ -166,16 +158,8 @@ } /* - * Stores integers in the buffer, msb first. + * Stores an integer in the buffer in 4 bytes, msb first. */ -void -buffer_put_short(Buffer *buffer, u_short value) -{ - char buf[2]; - PUT_16BIT(buf, value); - buffer_append(buffer, buf, 2); -} - void buffer_put_int(Buffer *buffer, u_int value) {