From 65260f57726dbd85579f7ed526fdf825d9c7d62c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 29 Jul 2009 17:48:26 +0200 Subject: [PATCH] key: remove useless arguments len Signed-off-by: Julien Danjou --- key.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/key.c b/key.c index 0accbcdff..06c4ec235 100644 --- a/key.c +++ b/key.c @@ -353,7 +353,7 @@ static int8_t const __utf32_clz_to_len[32] = { #define utf8clen(c) __utf32_clz_to_len[__builtin_clz((uint32_t)(c) | 1)] static bool -keysym_to_utf8(char *buf, int len, const xcb_keysym_t ksym) +keysym_to_utf8(char *buf, const xcb_keysym_t ksym) { unsigned int ksym_conv; int count; @@ -856,7 +856,7 @@ key_press_lookup_string(xcb_keysym_t ksym, return keysym_to_xf86(buf, buf_len, ksym); /* Handle other KeySym (like unicode...) */ - return keysym_to_utf8(buf, buf_len, ksym); + return keysym_to_utf8(buf, ksym); } /** Return the keysym from keycode.