summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-11-26 10:01:31 +0000
committerVolker Lendecke <vlendec@samba.org>2003-11-26 10:01:31 +0000
commitab1096d58e2447bc91370e0a7f913d9375658c4c (patch)
treea598ea30bd815b4b88523384d70c31f656f2c64d /source
parentba94e4a1ab6dc3335bbb29686ca6795d0ffad5b0 (diff)
downloadsamba-ab1096d58e2447bc91370e0a7f913d9375658c4c.tar.gz
samba-ab1096d58e2447bc91370e0a7f913d9375658c4c.tar.xz
samba-ab1096d58e2447bc91370e0a7f913d9375658c4c.zip
Get rid of a const warning
Volker
Diffstat (limited to 'source')
-rw-r--r--source/libads/ldap.c2
-rw-r--r--source/utils/net_ads.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source/libads/ldap.c b/source/libads/ldap.c
index 2ee8e6fe93e..775a504f2b1 100644
--- a/source/libads/ldap.c
+++ b/source/libads/ldap.c
@@ -1929,7 +1929,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/source/utils/net_ads.c b/source/utils/net_ads.c
index cad93608dc4..9404ae4b247 100644
--- a/source/utils/net_ads.c
+++ b/source/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];