mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
controlapi: fix perror message
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7c2e25103f
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-02-22 (Wed, 22 Feb 2017)
Origin message was:
------------------
- controlapi: fix perror message
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -882,8 +882,8 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh)
|
|||||||
#endif
|
#endif
|
||||||
int evd = open(EVENTDEV, O_RDWR);
|
int evd = open(EVENTDEV, O_RDWR);
|
||||||
if (evd < 0) {
|
if (evd < 0) {
|
||||||
|
perror("opening " EVENTDEV " failed");
|
||||||
hh->SendError();
|
hh->SendError();
|
||||||
perror("opening event0 failed");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (rc_send(evd, sendcode, KEY_PRESSED) < 0) {
|
if (rc_send(evd, sendcode, KEY_PRESSED) < 0) {
|
||||||
@@ -894,8 +894,8 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh)
|
|||||||
}
|
}
|
||||||
if (rc_send(evd, sendcode, KEY_RELEASED) < 0) {
|
if (rc_send(evd, sendcode, KEY_RELEASED) < 0) {
|
||||||
perror("writing 'KEY_RELEASED' event failed");
|
perror("writing 'KEY_RELEASED' event failed");
|
||||||
close(evd);
|
|
||||||
hh->SendError();
|
hh->SendError();
|
||||||
|
close(evd);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
close(evd);
|
close(evd);
|
||||||
|
Reference in New Issue
Block a user