mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
remove incorrect namespace prefix from getHostByNameMutex() reference in QHostInfoAgent::fromName()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
0b58781669
commit
b4cfda240a
1 changed files with 2 additions and 2 deletions
|
@ -215,7 +215,7 @@ QHostInfo QHostInfoAgent::fromName(const QString &hostName)
|
||||||
// reentrant on all platforms. For now this is okay since we only
|
// reentrant on all platforms. For now this is okay since we only
|
||||||
// use one QHostInfoAgent, but if more agents are introduced, locking
|
// use one QHostInfoAgent, but if more agents are introduced, locking
|
||||||
// must be provided.
|
// must be provided.
|
||||||
QMutexLocker locker(::getHostByNameMutex());
|
QMutexLocker locker(getHostByNameMutex());
|
||||||
hostent *result = gethostbyname(aceHostname.constData());
|
hostent *result = gethostbyname(aceHostname.constData());
|
||||||
if (result) {
|
if (result) {
|
||||||
if (result->h_addrtype == AF_INET) {
|
if (result->h_addrtype == AF_INET) {
|
||||||
|
@ -291,7 +291,7 @@ QString QHostInfo::localDomainName()
|
||||||
#if defined(QT_NO_GETADDRINFO)
|
#if defined(QT_NO_GETADDRINFO)
|
||||||
// We have to call res_init to be sure that _res was initialized
|
// We have to call res_init to be sure that _res was initialized
|
||||||
// So, for systems without getaddrinfo (which is thread-safe), we lock the mutex too
|
// So, for systems without getaddrinfo (which is thread-safe), we lock the mutex too
|
||||||
QMutexLocker locker(::getHostByNameMutex());
|
QMutexLocker locker(getHostByNameMutex());
|
||||||
#endif
|
#endif
|
||||||
res_init();
|
res_init();
|
||||||
QString domainName = QUrl::fromAce(_res.defdname);
|
QString domainName = QUrl::fromAce(_res.defdname);
|
||||||
|
|
Loading…
Add table
Reference in a new issue