diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-11-08 17:47:57 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-11-08 17:47:57 +0000 |
commit | e8806029447040591775cab4fb5bbd355d65bbdf (patch) | |
tree | 5174866e38af9b23124a1f9c69e45ba7ed6bebee /driver-csi.c | |
parent | 9969e197ba48b4c4fd3aab1d29067603e20d1e90 (diff) | |
download | termo-e8806029447040591775cab4fb5bbd355d65bbdf.tar.gz termo-e8806029447040591775cab4fb5bbd355d65bbdf.tar.xz termo-e8806029447040591775cab4fb5bbd355d65bbdf.zip |
Pass driver_info as explicit void* parameter into driver methods
Diffstat (limited to 'driver-csi.c')
-rw-r--r-- | driver-csi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/driver-csi.c b/driver-csi.c index 1203a00..fe885b2 100644 --- a/driver-csi.c +++ b/driver-csi.c @@ -130,9 +130,9 @@ abort_free_csi: return NULL; } -static void free_driver(void *private) +static void free_driver(void *info) { - termkey_csi *csi = private; + termkey_csi *csi = info; free(csi->csifuncs); csi->csifuncs = NULL; @@ -286,12 +286,12 @@ static termkey_result getkey_ss3(termkey_t *tk, termkey_csi *csi, size_t introle return TERMKEY_RES_KEY; } -static termkey_result getkey(termkey_t *tk, termkey_key *key, int force) +static termkey_result getkey(termkey_t *tk, void *info, termkey_key *key, int force) { if(tk->buffcount == 0) return tk->is_closed ? TERMKEY_RES_EOF : TERMKEY_RES_NONE; - termkey_csi *csi = tk->driver_info; + termkey_csi *csi = info; // Now we're sure at least 1 byte is valid unsigned char b0 = CHARAT(0); |