summaryrefslogtreecommitdiffstats
path: root/buffer.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2008-05-19 14:59:37 +1000
committerDamien Miller <djm@mindrot.org>2008-05-19 14:59:37 +1000
commitdb255cad0531047a3e35a95af74ad2e03b054412 (patch)
tree7452c18135999436612dcb4e6e7d9c9f2abfe90f /buffer.h
parente9890193032b4bba7afa40d4fc003bbf629afba2 (diff)
- markus@cvs.openbsd.org 2008/05/08 06:59:01
[bufaux.c buffer.h channels.c packet.c packet.h] avoid extra malloc/copy/free when receiving data over the net; ~10% speedup for localhost-scp; ok djm@
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/buffer.h b/buffer.h
index ecc4aea8..d0f354ee 100644
--- a/buffer.h
+++ b/buffer.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.h,v 1.16 2006/08/03 03:34:41 deraadt Exp $ */
+/* $OpenBSD: buffer.h,v 1.17 2008/05/08 06:59:01 markus Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -66,6 +66,7 @@ int buffer_get_char(Buffer *);
void buffer_put_char(Buffer *, int);
void *buffer_get_string(Buffer *, u_int *);
+void *buffer_get_string_ptr(Buffer *, u_int *);
void buffer_put_string(Buffer *, const void *, u_int);
void buffer_put_cstring(Buffer *, const char *);