diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2001-12-19 17:16:14 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2001-12-19 17:16:14 +0000 |
commit | fb7295d0200e1cb76061b4158bee69352ada0777 (patch) | |
tree | 0234746395c86c403c5ff9e554917845bd1d593a /usr.bin/ssh/buffer.h | |
parent | 12e3e05f75a15027550556cec07fc6ad1b331544 (diff) |
change the buffer/packet interface to use void* vs. char*; ok markus@
Diffstat (limited to 'usr.bin/ssh/buffer.h')
-rw-r--r-- | usr.bin/ssh/buffer.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/ssh/buffer.h b/usr.bin/ssh/buffer.h index 845bfb69707..badd16f3bb8 100644 --- a/usr.bin/ssh/buffer.h +++ b/usr.bin/ssh/buffer.h @@ -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); |