summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-09-04 09:53:05 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-05 11:17:50 +0200
commit56a6ae9e7a8d3bb9a973b934e42534b549293ed3 (patch)
treecbc3dc00cfe5132ceeae5f53ae664df961db295e /src
parentaebb0ca5022b02fc8c13600acf9cf1c52d4e539c (diff)
downloadsssd-56a6ae9e7a8d3bb9a973b934e42534b549293ed3.tar.gz
sssd-56a6ae9e7a8d3bb9a973b934e42534b549293ed3.tar.xz
sssd-56a6ae9e7a8d3bb9a973b934e42534b549293ed3.zip
AD: Rename parametrized #define
Diffstat (limited to 'src')
-rw-r--r--src/providers/ad/ad_srv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/ad/ad_srv.c b/src/providers/ad/ad_srv.c
index af25c1072..3d545c43a 100644
--- a/src/providers/ad/ad_srv.c
+++ b/src/providers/ad/ad_srv.c
@@ -33,7 +33,7 @@
#include "providers/ldap/sdap.h"
#include "providers/ldap/sdap_async.h"
-#define AD_SITE_DOMAIN "%s._sites.%s"
+#define AD_SITE_DOMAIN_FMT "%s._sites.%s"
#define AD_AT_DNS_DOMAIN "DnsDomain"
#define AD_AT_NT_VERSION "NtVer"
#define AD_AT_NETLOGON "netlogon"
@@ -759,7 +759,7 @@ static void ad_srv_plugin_site_done(struct tevent_req *subreq)
talloc_zfree(subreq);
if (ret == EOK) {
if (strcmp(state->service, "gc") == 0) {
- primary_domain = talloc_asprintf(state, AD_SITE_DOMAIN,
+ primary_domain = talloc_asprintf(state, AD_SITE_DOMAIN_FMT,
state->site, state->forest);
if (primary_domain == NULL) {
ret = ENOMEM;
@@ -768,7 +768,7 @@ static void ad_srv_plugin_site_done(struct tevent_req *subreq)
backup_domain = state->forest;
} else {
- primary_domain = talloc_asprintf(state, AD_SITE_DOMAIN,
+ primary_domain = talloc_asprintf(state, AD_SITE_DOMAIN_FMT,
state->site, state->discovery_domain);
if (primary_domain == NULL) {
ret = ENOMEM;