summaryrefslogtreecommitdiffstats
path: root/source/libads
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-20 13:02:47 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-20 13:02:47 +0000
commit30d0998c8c1a1d4de38ef0fbc83c2b763e05a3e6 (patch)
tree92267ca941b30f8981ff7aaff4ee63f3568c4035 /source/libads
parent860f5b1a0c1898f1ce380d249610eeaaeb43b9e0 (diff)
downloadsamba-30d0998c8c1a1d4de38ef0fbc83c2b763e05a3e6.tar.gz
samba-30d0998c8c1a1d4de38ef0fbc83c2b763e05a3e6.tar.xz
samba-30d0998c8c1a1d4de38ef0fbc83c2b763e05a3e6.zip
More fixes towards warnings on the IRIX compiler
(and yes, some of these are real bugs) In particular, the samr code was doing an &foo of various types, to a function that assumed uint32. If time_t isn't 32 bits long, that broke. They are assignment compatible however, so use that and an intermediate variable. Andrew Bartlett
Diffstat (limited to 'source/libads')
-rw-r--r--source/libads/ldap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/libads/ldap.c b/source/libads/ldap.c
index 9d15c4e33cc..f91ef4b8a05 100644
--- a/source/libads/ldap.c
+++ b/source/libads/ldap.c
@@ -230,7 +230,7 @@ ADS_STATUS ads_do_paged_search(ADS_STRUCT *ads, const char *bind_path,
else {
/* This would be the utf8-encoded version...*/
/* if (!(search_attrs = ads_push_strvals(ctx, attrs))) */
- if (!(str_list_copy(&search_attrs, (char **) attrs)))
+ if (!(str_list_copy(&search_attrs, attrs)))
{
rc = LDAP_NO_MEMORY;
goto done;
@@ -453,7 +453,7 @@ ADS_STATUS ads_do_search(ADS_STRUCT *ads, const char *bind_path, int scope,
else {
/* This would be the utf8-encoded version...*/
/* if (!(search_attrs = ads_push_strvals(ctx, attrs))) */
- if (!(str_list_copy(&search_attrs, (char **) attrs)))
+ if (!(str_list_copy(&search_attrs, attrs)))
{
rc = LDAP_NO_MEMORY;
goto done;