=== modified file 'termkey.c' --- termkey.c 2011-04-01 12:55:36 +0000 +++ termkey.c 2011-04-01 12:49:20 +0000 @@ -726,7 +726,7 @@ return TERMKEY_RES_KEY; } -TermKeyResult termkey_interpret_mouse(TermKey *tk, const TermKeyKey *key, TermKeyMouseEvent *event, int *button, int *line, int *col) +TermKeyResult termkey_interpret_mouse(TermKey *tk, TermKeyKey *key, TermKeyMouseEvent *event, int *button, int *line, int *col) { if(key->type != TERMKEY_TYPE_MOUSE) return TERMKEY_RES_NONE; @@ -848,7 +848,7 @@ /* UNREACHABLE */ } -void termkey_pushinput(TermKey *tk, const unsigned char *input, size_t inputlen) +void termkey_pushinput(TermKey *tk, unsigned char *input, size_t inputlen) { if(tk->buffstart + tk->buffcount + inputlen > tk->buffsize) { while(tk->buffstart + tk->buffcount + inputlen > tk->buffsize) === modified file 'termkey.h.in' --- termkey.h.in 2011-04-01 12:55:36 +0000 +++ termkey.h.in 2011-04-01 12:49:20 +0000 @@ -165,7 +165,7 @@ TermKeyResult termkey_getkey_force(TermKey *tk, TermKeyKey *key); TermKeyResult termkey_waitkey(TermKey *tk, TermKeyKey *key); -void termkey_pushinput(TermKey *tk, const unsigned char *input, size_t inputlen); +void termkey_pushinput(TermKey *tk, unsigned char *input, size_t inputlen); TermKeyResult termkey_advisereadable(TermKey *tk); @@ -175,7 +175,7 @@ TermKeySym termkey_keyname2sym(TermKey *tk, const char *keyname); -TermKeyResult termkey_interpret_mouse(TermKey *tk, const TermKeyKey *key, TermKeyMouseEvent *event, int *button, int *line, int *col); +TermKeyResult termkey_interpret_mouse(TermKey *tk, TermKeyKey *key, TermKeyMouseEvent *event, int *button, int *line, int *col); typedef enum { TERMKEY_FORMAT_LONGMOD = 1 << 0, // Shift-... instead of S-...