repositories
/
deb_libcec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3bafe35
)
cec: fixed - atoi returns an int, not an int8_t
author
Lars Op den Kamp
<lars@opdenkamp.eu>
Thu, 29 Mar 2012 09:19:57 +0000
(11:19 +0200)
committer
Lars Op den Kamp
<lars@opdenkamp.eu>
Thu, 29 Mar 2012 09:20:52 +0000
(11:20 +0200)
src/cec-config/cec-config.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/cec-config/cec-config.cpp
b/src/cec-config/cec-config.cpp
index d5f954eb7b5e2a4016ac55442fec033dde994c8c..a7335c74a94ccd14bb8f6b75c5233ed9b344d6e3 100644
(file)
--- a/
src/cec-config/cec-config.cpp
+++ b/
src/cec-config/cec-config.cpp
@@
-235,11
+235,8
@@
int8_t FindPhysicalAddressPortNumber(void)
if (input.empty())
return -1;
if (input.empty())
return -1;
- int8_t hdmiport = atoi(input.c_str());
- if (hdmiport < 1 || hdmiport > 15)
- return -1;
-
- return hdmiport;
+ int hdmiport = atoi(input.c_str());
+ return (hdmiport < 1 || hdmiport > 15) ? -1 : (int8_t)hdmiport;
}
cec_logical_address FindPhysicalAddressBaseDevice(void)
}
cec_logical_address FindPhysicalAddressBaseDevice(void)