repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: new libCEC methods added to LibCecSharp. fixed some compiler warnings
[deb_libcec.git]
/
src
/
testclient
/
main.cpp
diff --git
a/src/testclient/main.cpp
b/src/testclient/main.cpp
index d8daa8d7d8dc5691f89e486e1007958059fd9c48..0a7a9be9874326691bbb2ea07142d78daee3963e 100644
(file)
--- a/
src/testclient/main.cpp
+++ b/
src/testclient/main.cpp
@@
-371,7
+371,7
@@
int main (int argc, char *argv[])
{
if (argc >= iArgPtr + 2)
{
{
if (argc >= iArgPtr + 2)
{
- iHDMIPort
=
atoi(argv[iArgPtr + 1]);
+ iHDMIPort
= (int8_t)
atoi(argv[iArgPtr + 1]);
cout << "using HDMI port '" << iHDMIPort << "'" << endl;
++iArgPtr;
}
cout << "using HDMI port '" << iHDMIPort << "'" << endl;
++iArgPtr;
}
@@
-561,7
+561,7
@@
int main (int argc, char *argv[])
string strvalue;
if (GetWord(input, strvalue))
{
string strvalue;
if (GetWord(input, strvalue))
{
- parser->SetHDMIPort(atoi(strvalue.c_str()));
+ parser->SetHDMIPort(
(uint8_t)
atoi(strvalue.c_str()));
}
}
else if (command == "pa")
}
}
else if (command == "pa")
@@
-738,7
+738,7
@@
int main (int argc, char *argv[])
{
cout << "listing active devices:" << endl;
cec_logical_addresses addresses = parser->GetActiveDevices();
{
cout << "listing active devices:" << endl;
cec_logical_addresses addresses = parser->GetActiveDevices();
- for (u
nsigned
iPtr = 0; iPtr < 16; iPtr++)
+ for (u
int8_t
iPtr = 0; iPtr < 16; iPtr++)
if (addresses[iPtr])
cout << "logical address " << iPtr << endl;
}
if (addresses[iPtr])
cout << "logical address " << iPtr << endl;
}