diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-10-24 18:56:45 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-10-24 18:56:45 +0800 |
commit | f4741994e2c474a3da4caf3e877b6f53bfc24dcd (patch) | |
tree | c3db213309754a7529967572d5f6473f1ed5eaa3 /buffer.h | |
parent | 9a5ad3c8a5f5af02370ab920d3fbb7dd7b097b98 (diff) | |
download | dropbear-f4741994e2c474a3da4caf3e877b6f53bfc24dcd.tar.gz |
Add buf_decrpos()
Diffstat (limited to 'buffer.h')
-rw-r--r-- | buffer.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -49,7 +49,8 @@ buffer* buf_newcopy(const buffer* buf); void buf_setlen(buffer* buf, unsigned int len); void buf_incrlen(buffer* buf, unsigned int incr); void buf_setpos(buffer* buf, unsigned int pos); -void buf_incrpos(buffer* buf, int incr); /* -ve is ok, to go backwards */ +void buf_incrpos(buffer* buf, unsigned int incr); +void buf_decrpos(buffer* buf, unsigned int decr); void buf_incrwritepos(buffer* buf, unsigned int incr); unsigned char buf_getbyte(buffer* buf); unsigned char buf_getbool(buffer* buf); |