Skip to contentSkip to conversation

ir-ctl: 0 is valid scancode

PATCH New Sean Young 1 participant 1 message Dec 2, 2016 Media (V4L/DVB)

lore
Share & tools
lore

Sean Young

author
#0 lore raw

PATCH 3/6 ir-ctl: 0 is valid scancode

Same for 0xffffffff.

---
 utils/ir-ctl/ir-ctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/ir-ctl/ir-ctl.c +1 -1
index f19bd05..768daad 100644
@@ -146,7 +146,7 @@ static bool strtoscancode(const char *p, unsigned *ret)
 	if (end == NULL || end[0] != 0)
 		return false;
 
-	if (arg <= 0 || arg >= 0xffffffff)
+	if (arg < 0 || arg > 0xffffffff)
 		return false;
 
 	*ret = arg;
Signature · 1 line
2.9.3