};
static int
-get_integer_keycode(const char *key_name)
+vshKeyCodeGetInt(const char *key_name)
{
unsigned int val;
holdtime = 0;
codeset = virKeycodeSetTypeFromString(codeset_option);
- if ((int)codeset < 0) {
+ if (codeset < 0) {
vshError(ctl, _("unknown codeset: '%s'"), codeset_option);
goto cleanup;
}
goto cleanup;
}
- if ((keycode = get_integer_keycode(opt->data)) <= 0) {
+ if ((keycode = vshKeyCodeGetInt(opt->data)) <= 0) {
if ((keycode = virKeycodeValueFromString(codeset, opt->data)) <= 0) {
vshError(ctl, _("invalid keycode: '%s'"), opt->data);
goto cleanup;