summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2003-02-18 14:59:21 +0000
committerRafal Szczesniak <mimir@samba.org>2003-02-18 14:59:21 +0000
commit030beddfb3c5208256c08b3cd2620332113f6308 (patch)
treec99fe36622dbef051f5455e3a43c6ec64f993522
parent5a32a8491df9d81d54c3eb12e7b86abac7091bba (diff)
downloadsamba-030beddfb3c5208256c08b3cd2620332113f6308.tar.gz
samba-030beddfb3c5208256c08b3cd2620332113f6308.tar.bz2
samba-030beddfb3c5208256c08b3cd2620332113f6308.zip
Fix of two warnings.
pull_ucs2_talloc function takes char** pointer, not (here explicitly casted) void** one. Rafal (This used to be commit e77c44efd95d42a8194f5c3d36c043f8e84dfd1d)
-rw-r--r--source3/libads/ldap_printer.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/libads/ldap_printer.c b/source3/libads/ldap_printer.c
index 87ea058896..f5cd4f2885 100644
--- a/source3/libads/ldap_printer.c
+++ b/source3/libads/ldap_printer.c
@@ -85,8 +85,7 @@ static BOOL map_sz(TALLOC_CTX *ctx, ADS_MODLIST *mods,
return False;
if (value->size && *((smb_ucs2_t *) value->data_p)) {
- pull_ucs2_talloc(ctx, (void **) &str_value,
- (const smb_ucs2_t *) value->data_p);
+ pull_ucs2_talloc(ctx, &str_value, (const smb_ucs2_t *) value->data_p);
status = ads_mod_str(ctx, mods, value->valuename, str_value);
return ADS_ERR_OK(status);
}
@@ -155,9 +154,8 @@ static BOOL map_multi_sz(TALLOC_CTX *ctx, ADS_MODLIST *mods,
cur_str = (smb_ucs2_t *) value->data_p;
for (i=0; i < num_vals; i++)
- cur_str += pull_ucs2_talloc(ctx,
- (void **) &str_values[i],
- cur_str);
+ cur_str += pull_ucs2_talloc(ctx, &str_values[i],
+ cur_str);
status = ads_mod_strlist(ctx, mods, value->valuename,
(const char **) str_values);