Removed compile time ssize_t warnings

This commit is contained in:
pepi 2015-04-08 09:39:32 +00:00
parent 81e4e089d4
commit e136c11b65

View file

@ -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);