diff options
author | 2010-02-09 03:56:28 +0000 | |
---|---|---|
committer | 2010-02-09 03:56:28 +0000 | |
commit | 1b0ae1e4ba3045a18db036ee473d73acdaa14987 (patch) | |
tree | eaed976547a88a3312e8e1e7a4509dbc8f2e994c /usr.bin/ssh/buffer.c | |
parent | XY Failure reads no longer require temp buffer or WUF_FAIL (diff) | |
download | wireguard-openbsd-1b0ae1e4ba3045a18db036ee473d73acdaa14987.tar.xz wireguard-openbsd-1b0ae1e4ba3045a18db036ee473d73acdaa14987.zip |
constify the arguments to buffer_len, buffer_ptr and buffer_dump
Diffstat (limited to 'usr.bin/ssh/buffer.c')
-rw-r--r-- | usr.bin/ssh/buffer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/buffer.c b/usr.bin/ssh/buffer.c index 8527c04839d..656454bf84e 100644 --- a/usr.bin/ssh/buffer.c +++ b/usr.bin/ssh/buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buffer.c,v 1.31 2006/08/03 03:34:41 deraadt Exp $ */ +/* $OpenBSD: buffer.c,v 1.32 2010/02/09 03:56:28 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -158,7 +158,7 @@ buffer_check_alloc(Buffer *buffer, u_int len) /* Returns the number of bytes of data in the buffer. */ u_int -buffer_len(Buffer *buffer) +buffer_len(const Buffer *buffer) { return buffer->end - buffer->offset; } @@ -226,7 +226,7 @@ buffer_consume_end(Buffer *buffer, u_int bytes) /* Returns a pointer to the first used byte in the buffer. */ void * -buffer_ptr(Buffer *buffer) +buffer_ptr(const Buffer *buffer) { return buffer->buf + buffer->offset; } @@ -234,7 +234,7 @@ buffer_ptr(Buffer *buffer) /* Dumps the contents of the buffer to stderr. */ void -buffer_dump(Buffer *buffer) +buffer_dump(const Buffer *buffer) { u_int i; u_char *ucp = buffer->buf; |