summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-11-26 09:58:41 +0000
committerVolker Lendecke <vlendec@samba.org>2003-11-26 09:58:41 +0000
commit203710ea6d74a6ff17ed3c2d718022242384ee3a (patch)
tree772cc22a33e7d831512b23c984a96394f7130335 /source3
parent09a708815625f4c9e656cdbbf148a2ca2de73bc7 (diff)
downloadsamba-203710ea6d74a6ff17ed3c2d718022242384ee3a.tar.gz
samba-203710ea6d74a6ff17ed3c2d718022242384ee3a.tar.bz2
samba-203710ea6d74a6ff17ed3c2d718022242384ee3a.zip
Get rid of a const warning
Volker (This used to be commit 94860687c535ace0c962ca3fe7da59df05325c62)
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/ldap.c2
-rw-r--r--source3/utils/net_ads.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index b3706cb240..072f42513c 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -1933,7 +1933,7 @@ bin/net -Uadministrator%XXXXX ads search '(&(objectclass=crossref)(dnsroot=VNET3
but you need to force the bind path to match the configurationNamingContext from the rootDSE
*/
-ADS_STATUS ads_workgroup_name(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, char **workgroup)
+ADS_STATUS ads_workgroup_name(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, const char **workgroup)
{
char *expr;
ADS_STATUS rc;
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index cad93608dc..9404ae4b24 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -209,7 +209,7 @@ static int net_ads_workgroup(int argc, const char **argv)
{
ADS_STRUCT *ads;
TALLOC_CTX *ctx;
- char *workgroup;
+ const char *workgroup;
if (!(ads = ads_startup())) return -1;
@@ -656,7 +656,7 @@ int net_ads_join(int argc, const char **argv)
char *ou_str;
uint32 sec_channel_type = SEC_CHAN_WKSTA;
uint32 account_type = UF_WORKSTATION_TRUST_ACCOUNT;
- char *short_domain_name = NULL;
+ const char *short_domain_name = NULL;
TALLOC_CTX *ctx = NULL;
if (argc > 0) org_unit = argv[0];