diff options
author | Damien Miller <djm@mindrot.org> | 2001-12-21 04:56:54 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-12-21 04:56:54 +0100 |
commit | 5a6b4fe22583394886092aad5787b5fa8355276e (patch) | |
tree | c6366cbaf2c3ea9bd1ac8f162f9452e1e9ca0434 /buffer.h | |
parent | - markus@cvs.openbsd.org 2001/12/19 16:09:39 (diff) | |
download | openssh-5a6b4fe22583394886092aad5787b5fa8355276e.tar.xz openssh-5a6b4fe22583394886092aad5787b5fa8355276e.zip |
- stevesk@cvs.openbsd.org 2001/12/19 17:16:13
[authfile.c bufaux.c bufaux.h buffer.c buffer.h packet.c packet.h ssh.c]
change the buffer/packet interface to use void* vs. char*; ok markus@
Diffstat (limited to 'buffer.h')
-rw-r--r-- | buffer.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -11,13 +11,13 @@ * called by a name other than "ssh" or "Secure Shell". */ -/* RCSID("$OpenBSD: buffer.h,v 1.9 2001/06/26 17:27:23 markus Exp $"); */ +/* RCSID("$OpenBSD: buffer.h,v 1.10 2001/12/19 17:16:13 stevesk Exp $"); */ #ifndef BUFFER_H #define BUFFER_H typedef struct { - char *buf; /* Buffer for data. */ + u_char *buf; /* Buffer for data. */ u_int alloc; /* Number of bytes allocated for data. */ u_int offset; /* Offset of first byte containing data. */ u_int end; /* Offset of last byte containing data. */ @@ -28,12 +28,12 @@ void buffer_clear(Buffer *); void buffer_free(Buffer *); u_int buffer_len(Buffer *); -char *buffer_ptr(Buffer *); +void *buffer_ptr(Buffer *); -void buffer_append(Buffer *, const char *, u_int); -void buffer_append_space(Buffer *, char **, u_int); +void buffer_append(Buffer *, const void *, u_int); +void *buffer_append_space(Buffer *, u_int); -void buffer_get(Buffer *, char *, u_int); +void buffer_get(Buffer *, void *, u_int); void buffer_consume(Buffer *, u_int); void buffer_consume_end(Buffer *, u_int); |