summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libads/ads_struct.c16
-rw-r--r--source3/libsmb/namequery_dc.c8
2 files changed, 12 insertions, 12 deletions
diff --git a/source3/libads/ads_struct.c b/source3/libads/ads_struct.c
index 7794952387..b6c8e995ed 100644
--- a/source3/libads/ads_struct.c
+++ b/source3/libads/ads_struct.c
@@ -3,17 +3,17 @@
ads (active directory) utility library
Copyright (C) Andrew Tridgell 2001
Copyright (C) Andrew Bartlett 2001
-
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -56,7 +56,7 @@ char *ads_build_path(const char *realm, const char *sep, const char *field, int
p=strtok_r(r, sep, &saveptr);
if (p) {
strlcat(ret, p, len);
-
+
while ((p=strtok_r(NULL, sep, &saveptr)) != NULL) {
int retval;
char *s = NULL;
@@ -93,7 +93,7 @@ char *ads_build_dn(const char *realm)
char *ads_build_domain(const char *dn)
{
char *dnsdomain = NULL;
-
+
/* result should always be shorter than the DN */
if ( (dnsdomain = SMB_STRDUP( dn )) == NULL ) {
@@ -123,10 +123,10 @@ ADS_STRUCT *ads_init(const char *realm,
{
ADS_STRUCT *ads;
int wrap_flags;
-
+
ads = SMB_XMALLOC_P(ADS_STRUCT);
ZERO_STRUCTP(ads);
-
+
ads->server.realm = realm? SMB_STRDUP(realm) : NULL;
ads->server.workgroup = workgroup ? SMB_STRDUP(workgroup) : NULL;
ads->server.ldap_server = ldap_server? SMB_STRDUP(ldap_server) : NULL;
@@ -194,7 +194,7 @@ void ads_destroy(ADS_STRUCT **ads)
SAFE_FREE((*ads)->config.client_site_name);
SAFE_FREE((*ads)->config.schema_path);
SAFE_FREE((*ads)->config.config_path);
-
+
ZERO_STRUCTP(*ads);
if ( is_mine )
diff --git a/source3/libsmb/namequery_dc.c b/source3/libsmb/namequery_dc.c
index d6ff99959e..5d44719a8e 100644
--- a/source3/libsmb/namequery_dc.c
+++ b/source3/libsmb/namequery_dc.c
@@ -6,17 +6,17 @@
Copyright (C) Tim Potter 2001
Copyright (C) Andrew Bartlett 2002
Copyright (C) Gerald Carter 2003
-
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -48,7 +48,7 @@ static bool is_our_primary_domain(const char *domain)
/**************************************************************************
Find the name and IP address for a server in the realm/domain
*************************************************************************/
-
+
static bool ads_dc_name(const char *domain,
const char *realm,
struct sockaddr_storage *dc_ss,