mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-09 14:33:28 +02:00
2020-10-11 Fred Gleason <fredg@paravelsystems.com>
* Fixed gcc(1) format-string warnings in 'lib/rdmulticaster.cpp'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
ab0a561c12
commit
d2075b2502
@ -20456,3 +20456,6 @@
|
||||
* Fixed a bug in rdairplay(1) where copying a log event using
|
||||
the 'Copy' button would result in the new event always getting
|
||||
a 'PLAY' transition.
|
||||
2020-10-11 Fred Gleason <fredg@paravelsystems.com>
|
||||
2020-10-11 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed gcc(1) format-string warnings in 'lib/rdmulticaster.cpp'.
|
||||
|
@ -65,8 +65,10 @@ void RDMulticaster::subscribe(const QHostAddress &addr)
|
||||
mreq.imr_ifindex=0;
|
||||
if(setsockopt(multi_socket->socket(),IPPROTO_IP,IP_ADD_MEMBERSHIP,
|
||||
&mreq,sizeof(mreq))<0) {
|
||||
fprintf(stderr,tr("Unable to subscribe to multicast address")+" \""+
|
||||
addr.toString()+"\" ["+QString(strerror(errno))+"]");
|
||||
fprintf(stderr,"%s\n",(tr("Unable to subscribe to multicast address")+
|
||||
" \""+addr.toString()+"\" ["+
|
||||
QString(strerror(errno))+"]").
|
||||
toUtf8().constData());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -83,8 +85,10 @@ void RDMulticaster::unsubscribe(const QHostAddress &addr)
|
||||
mreq.imr_ifindex=0;
|
||||
if(setsockopt(multi_socket->socket(),IPPROTO_IP,IP_DROP_MEMBERSHIP,
|
||||
&mreq,sizeof(mreq))<0) {
|
||||
fprintf(stderr,tr("Unable to subscribe to multicast address")+" \""+
|
||||
addr.toString()+"\" ["+QString(strerror(errno))+"]");
|
||||
fprintf(stderr,"%s\n",(tr("Unable to subscribe to multicast address")+
|
||||
" \""+addr.toString()+"\" ["+
|
||||
QString(strerror(errno))+"]").
|
||||
toUtf8().constData());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user