summaryrefslogtreecommitdiff
path: root/source3/nsswitch/libwbclient/wbc_pwd.c
diff options
context:
space:
mode:
authorGerald (Jerry) Carter <jerry@samba.org>2008-01-02 17:34:41 -0600
committerGerald (Jerry) Carter <jerry@samba.org>2008-01-02 17:34:41 -0600
commit0df7bcaec38432863cde12cf8c15497d2ae30335 (patch)
tree01561801292ee8f4df700fc45c4ad183dd9df0b8 /source3/nsswitch/libwbclient/wbc_pwd.c
parent59f5b4c9d72f0bd447f7cca0ebef4821c0cd60df (diff)
downloadsamba-0df7bcaec38432863cde12cf8c15497d2ae30335.tar.gz
samba-0df7bcaec38432863cde12cf8c15497d2ae30335.tar.bz2
samba-0df7bcaec38432863cde12cf8c15497d2ae30335.zip
Fix some C++ warnings (patch was Volker's) - implicit case from void* to char*
(This used to be commit 518168410c49ac25085714c73e76dcf358fc4b68)
Diffstat (limited to 'source3/nsswitch/libwbclient/wbc_pwd.c')
-rw-r--r--source3/nsswitch/libwbclient/wbc_pwd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/nsswitch/libwbclient/wbc_pwd.c b/source3/nsswitch/libwbclient/wbc_pwd.c
index 4e3b0d3967..5f7437b188 100644
--- a/source3/nsswitch/libwbclient/wbc_pwd.c
+++ b/source3/nsswitch/libwbclient/wbc_pwd.c
@@ -228,7 +228,8 @@ wbcErr wbcGetgrnam(const char *name, struct group **grp)
&response);
BAIL_ON_WBC_ERROR(wbc_status);
- *grp = copy_group_entry(&response.data.gr, response.extra_data.data);
+ *grp = copy_group_entry(&response.data.gr,
+ (char*)response.extra_data.data);
BAIL_ON_PTR_ERROR(*grp, wbc_status);
done:
@@ -270,7 +271,8 @@ wbcErr wbcGetgrgid(gid_t gid, struct group **grp)
&response);
BAIL_ON_WBC_ERROR(wbc_status);
- *grp = copy_group_entry(&response.data.gr, response.extra_data.data);
+ *grp = copy_group_entry(&response.data.gr,
+ (char*)response.extra_data.data);
BAIL_ON_PTR_ERROR(*grp, wbc_status);
done: