Fixed build error.
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
pkgname=thunderpad-git
|
pkgname=thunderpad-git
|
||||||
_pkgname=thunderpad
|
_pkgname=thunderpad
|
||||||
pkgver=r164.66862ea
|
pkgver=r165.d40fd23
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Accessible joypad to keyboard and mouse mapper"
|
pkgdesc="Accessible joypad to keyboard and mouse mapper"
|
||||||
arch=('aarch64' 'x86_64')
|
arch=('aarch64' 'x86_64')
|
||||||
|
|||||||
+4
-1
@@ -29,7 +29,10 @@ static int signalSockets[2] = {-1, -1};
|
|||||||
void catchSignal(int sig) {
|
void catchSignal(int sig) {
|
||||||
const int savedErrno = errno;
|
const int savedErrno = errno;
|
||||||
const unsigned char signalNumber = static_cast<unsigned char>(sig);
|
const unsigned char signalNumber = static_cast<unsigned char>(sig);
|
||||||
if (signalSockets[0] >= 0) write(signalSockets[0], &signalNumber, sizeof(signalNumber));
|
if (signalSockets[0] >= 0) {
|
||||||
|
const ssize_t writeResult = write(signalSockets[0], &signalNumber, sizeof(signalNumber));
|
||||||
|
(void)writeResult;
|
||||||
|
}
|
||||||
errno = savedErrno;
|
errno = savedErrno;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user