diff options
author | Günther Deschner <gd@samba.org> | 2005-07-21 09:28:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:00:14 -0500 |
commit | 63546f1c79db09c1d7032af8d941d6d9497280e7 (patch) | |
tree | 6841a132d2d35204126e1213cc67f372d86738ea /source3 | |
parent | 86ea026edbac0758696cf2b672f44c1e970333f3 (diff) | |
download | samba-63546f1c79db09c1d7032af8d941d6d9497280e7.tar.gz samba-63546f1c79db09c1d7032af8d941d6d9497280e7.tar.bz2 samba-63546f1c79db09c1d7032af8d941d6d9497280e7.zip |
r8675: fix some compile warnings.
Guenther
(This used to be commit afa8ae831a8d9cde8c6474c5fc807a9ca8155273)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/ldap_printer.c | 2 | ||||
-rw-r--r-- | source3/utils/net_ads.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/libads/ldap_printer.c b/source3/libads/ldap_printer.c index 6b053f8b4a..9773296ae0 100644 --- a/source3/libads/ldap_printer.c +++ b/source3/libads/ldap_printer.c @@ -55,7 +55,7 @@ ADS_STATUS ads_find_printer_on_server(ADS_STRUCT *ads, void **res, ADS_STATUS ads_find_printers(ADS_STRUCT *ads, void **res) { - char *ldap_expr; + const char *ldap_expr; const char *attrs[] = { "objectClass", "printerName", "location", "driverName", "serverName", "description", NULL }; diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index efeb34e53d..6a58fa9fac 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -81,7 +81,7 @@ static int net_ads_lookup(int argc, const char **argv) d_printf("Didn't find the cldap server!\n"); return -1; } if (!ads->config.realm) { - ads->config.realm = opt_target_workgroup; + ads->config.realm = CONST_DISCARD(char *, opt_target_workgroup); ads->ldap_port = 389; } |