repositories
/
deb_libcec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5458fd7
)
cosmetic replace tab by space
author
Fneufneu
<fneufneu@xbmc.org>
Tue, 28 Feb 2012 07:22:25 +0000
(08:22 +0100)
committer
Fneufneu
<fneufneu@xbmc.org>
Tue, 28 Feb 2012 07:22:25 +0000
(08:22 +0100)
src/lib/adapter/USBCECAdapterDetection.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/adapter/USBCECAdapterDetection.cpp
b/src/lib/adapter/USBCECAdapterDetection.cpp
index c2a0b5cfb47b77ff48ae942a3df55eca6aad2d60..8775b4e55bbb2444c8b9a841e3e57f0e3748773f 100644
(file)
--- a/
src/lib/adapter/USBCECAdapterDetection.cpp
+++ b/
src/lib/adapter/USBCECAdapterDetection.cpp
@@
-333,12
+333,11
@@
uint8_t CUSBCECAdapterDetection::FindAdapters(cec_adapter *deviceList, uint8_t i
for (i = 0; i < 8; ++i)
{
(void)snprintf(devicePath, sizeof(devicePath), "/dev/ttyU%d", i);
for (i = 0; i < 8; ++i)
{
(void)snprintf(devicePath, sizeof(devicePath), "/dev/ttyU%d", i);
- if (!access(devicePath, 0))
- {
- snprintf(deviceList[iFound].path, sizeof(deviceList[iFound].path), "%s", devicePath);
- snprintf(deviceList[iFound].comm, sizeof(deviceList[iFound].path), "%s", devicePath);
- ++iFound;
- }
+ if (!access(devicePath, 0))
+ {
+ snprintf(deviceList[iFound ].path, sizeof(deviceList[iFound].path), "%s", devicePath);
+ snprintf(deviceList[iFound++].comm, sizeof(deviceList[iFound].path), "%s", devicePath);
+ }
}
#endif
}
#endif