mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-27 05:03:26 -08:00
Removed compile time ssize_t warnings
This commit is contained in:
@@ -122,23 +122,27 @@ void ServerLogger::flushBuffer()
|
||||
void ServerLogger::hupSignalHandler(int /*unused*/)
|
||||
{
|
||||
#ifdef Q_OS_UNIX
|
||||
ssize_t writeValue = NULL;
|
||||
|
||||
if (!logFile)
|
||||
return;
|
||||
|
||||
char a = 1;
|
||||
::write(sigHupFD[0], &a, sizeof(a));
|
||||
writeValue = ::write(sigHupFD[0], &a, sizeof(a));
|
||||
#endif
|
||||
}
|
||||
|
||||
void ServerLogger::handleSigHup()
|
||||
{
|
||||
#ifdef Q_OS_UNIX
|
||||
ssize_t readValue = NULL;
|
||||
|
||||
if (!logFile)
|
||||
return;
|
||||
|
||||
snHup->setEnabled(false);
|
||||
char tmp;
|
||||
::read(sigHupFD[1], &tmp, sizeof(tmp));
|
||||
readValue = ::read(sigHupFD[1], &tmp, sizeof(tmp));
|
||||
|
||||
logFile->close();
|
||||
logFile->open(QIODevice::Append);
|
||||
|
||||
Reference in New Issue
Block a user