And change a paramter name to be more self-explanatory.
Signed-off-by: Peter Hutterer <[email protected]>
---
tools/xsetwacom.c | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
index 2b6cac9..b380c54 100644
--- a/tools/xsetwacom.c
+++ b/tools/xsetwacom.c
@@ -929,25 +929,29 @@ static void list(Display *dpy, int argc, char **argv)
else
printf("unknown argument to list.\n");
}
-/*
+
+/**
* Convert a list of random special keys to strings that can be passed into
* XStringToKeysym
+ * @param special A special key, e.g. a modifier or one of the keys in
+ * specialkeys.
+ * @return The X Keysym representing specialkey.
*/
-static char *convert_specialkey(const char *modifier)
+static char *convert_specialkey(const char *specialkey)
{
struct modifier *m = modifiers;
- while(m->name && strcasecmp(modifier, m->name))
+ while(m->name && strcasecmp(specialkey, m->name))
m++;
if (!m->name)
{
m = specialkeys;
- while(m->name && strcasecmp(modifier, m->name))
+ while(m->name && strcasecmp(specialkey, m->name))
m++;
}
- return m->converted ? m->converted : (char*)modifier;
+ return m->converted ? m->converted : (char*)specialkey;
}
/**
--
1.7.3.5
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel