mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 15:20:29 +01: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:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user