aboutsummaryrefslogtreecommitdiffstats
path: root/src/wreadln.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-06 14:32:29 +0200
committerMax Kellermann <max@duempel.org>2008-10-06 14:32:29 +0200
commit62e8aa21abca6ff635268aa8723443b973354a14 (patch)
tree344d724596fe195e05fceaa748207d7c1855e4e0 /src/wreadln.c
parent07df83b7b074106ae391187feffba570748e990f (diff)
downloadmpd-62e8aa21abca6ff635268aa8723443b973354a14.tar.gz
mpd-62e8aa21abca6ff635268aa8723443b973354a14.tar.xz
mpd-62e8aa21abca6ff635268aa8723443b973354a14.zip
removed my_wgetch(), switch to wgetch()
There are no special cases left for my_wgetch() to handle. We can remove it and use the original wgetch() instead.
Diffstat (limited to '')
-rw-r--r--src/wreadln.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/wreadln.c b/src/wreadln.c
index 42b5561c0..7f00ef3dd 100644
--- a/src/wreadln.c
+++ b/src/wreadln.c
@@ -44,7 +44,6 @@
guint wrln_max_line_size = WRLN_MAX_LINE_SIZE;
guint wrln_max_history_length = WRLN_MAX_HISTORY_LENGTH;
-wrln_wgetch_fn_t wrln_wgetch = NULL;
void *wrln_completion_callback_data = NULL;
wrln_gcmp_pre_cb_t wrln_pre_completion_callback = NULL;
wrln_gcmp_post_cb_t wrln_post_completion_callback = NULL;
@@ -182,10 +181,7 @@ _wreadln(WINDOW *w,
}
while( key!=13 && key!='\n' ) {
- if( wrln_wgetch )
- key = wrln_wgetch(w);
- else
- key = wgetch(w);
+ key = wgetch(w);
/* check if key is a function key */
for(i=0; i<63; i++)