mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 19:00:11 +01:00
dns: remove duplicate declaration of singleton instance
This commit is contained in:
parent
d136f0fedc
commit
4ec6481695
1 changed files with 2 additions and 4 deletions
|
|
@ -100,6 +100,8 @@ typedef enum {
|
|||
SR_ERROR
|
||||
} SpawnResult;
|
||||
|
||||
NM_DEFINE_SINGLETON_GETTER (NMDnsManager, nm_dns_manager_get, NM_TYPE_DNS_MANAGER);
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
#define _NMLOG_PREFIX_NAME "dns-mgr"
|
||||
|
|
@ -162,8 +164,6 @@ struct _NMDnsManagerClass {
|
|||
|
||||
G_DEFINE_TYPE (NMDnsManager, nm_dns_manager, NM_TYPE_EXPORTED_OBJECT)
|
||||
|
||||
NM_DEFINE_SINGLETON_INSTANCE (NMDnsManager);
|
||||
|
||||
#define NM_DNS_MANAGER_GET_PRIVATE(self) _NM_GET_PRIVATE(self, NMDnsManager, NM_IS_DNS_MANAGER)
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
@ -1604,8 +1604,6 @@ _check_resconf_immutable (NMDnsManagerResolvConfManager rc_manager)
|
|||
}
|
||||
}
|
||||
|
||||
NM_DEFINE_SINGLETON_GETTER (NMDnsManager, nm_dns_manager_get, NM_TYPE_DNS_MANAGER);
|
||||
|
||||
static gboolean
|
||||
_resolvconf_resolved_managed (void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue