diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-04-01 13:55:36 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-04-01 13:55:36 +0100 |
commit | d6d74d252f8a5ccf81d9605718d4e195d66be0aa (patch) | |
tree | f01afad14be1e7eee65607ea8345e60cfe32a18d /termkey.c | |
parent | 88230407feb4656748604e7ced1526bdb8982c22 (diff) | |
download | termo-d6d74d252f8a5ccf81d9605718d4e195d66be0aa.tar.gz termo-d6d74d252f8a5ccf81d9605718d4e195d66be0aa.tar.xz termo-d6d74d252f8a5ccf81d9605718d4e195d66be0aa.zip |
Add a couple more 'const' markings to API functions where appropriate
Diffstat (limited to 'termkey.c')
-rw-r--r-- | termkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -726,7 +726,7 @@ static TermKeyResult peekkey_mouse(TermKey *tk, TermKeyKey *key, size_t *nbytep) return TERMKEY_RES_KEY; } -TermKeyResult termkey_interpret_mouse(TermKey *tk, TermKeyKey *key, TermKeyMouseEvent *event, int *button, int *line, int *col) +TermKeyResult termkey_interpret_mouse(TermKey *tk, const TermKeyKey *key, TermKeyMouseEvent *event, int *button, int *line, int *col) { if(key->type != TERMKEY_TYPE_MOUSE) return TERMKEY_RES_NONE; @@ -848,7 +848,7 @@ TermKeyResult termkey_waitkey(TermKey *tk, TermKeyKey *key) /* UNREACHABLE */ } -void termkey_pushinput(TermKey *tk, unsigned char *input, size_t inputlen) +void termkey_pushinput(TermKey *tk, const unsigned char *input, size_t inputlen) { if(tk->buffstart + tk->buffcount + inputlen > tk->buffsize) { while(tk->buffstart + tk->buffcount + inputlen > tk->buffsize) |