2021-06-01 Fred Gleason <fredg@paravelsystems.com>

* Cleaned up compile warning in 'lib/rdcae.cpp'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-06-01 10:31:36 -04:00
parent 6902630b1b
commit a9648de976
2 changed files with 8 additions and 1 deletions

View File

@ -21756,3 +21756,5 @@
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
* Removed the '${shlibs:Depends}' dependency from the
'rivendell-webapi' DEB package.
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warning in 'lib/rdcae.cpp'.

View File

@ -493,7 +493,12 @@ void RDCae::clockData()
void RDCae::SendCommand(QString cmd)
{
write(cae_socket,cmd.toUtf8(),cmd.toUtf8().length());
int len=cmd.toUtf8().length();
int n=write(cae_socket,cmd.toUtf8(),cmd.toUtf8().length());
if(n!=len) {
rda->syslog(LOG_WARNING,"RDCae lost %d bytes when sending \"%s\"",
len-n,cmd.toUtf8().constData());
}
}