summaryrefslogtreecommitdiff
path: root/source3/passdb/passdb.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-06-14 00:47:08 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-06-14 00:47:08 +0000
commitbaef1358d2b5a98a592f0247911a31d79148dcba (patch)
treef878164ca8d1526f723f25796a3ca2cef51a5d4f /source3/passdb/passdb.c
parentd179b191794c06626375692ea81c1931db57f550 (diff)
downloadsamba-baef1358d2b5a98a592f0247911a31d79148dcba.tar.gz
samba-baef1358d2b5a98a592f0247911a31d79148dcba.tar.bz2
samba-baef1358d2b5a98a592f0247911a31d79148dcba.zip
Add const, kill of useless casts and therefore eliminate warnings.
Andrew Bartlett (This used to be commit 29490f214750acd44cee6c4ab1354722d82d853a)
Diffstat (limited to 'source3/passdb/passdb.c')
-rw-r--r--source3/passdb/passdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 31bbf14299..fa1bb4b2d9 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -701,7 +701,7 @@ BOOL local_lookup_name(const char *c_user, DOM_SID *psid, enum SID_NAME_USE *psi
}
if (pdb_getsampwnam(sam_account, user)) {
- sid_copy(psid, (DOM_SID *) pdb_get_user_sid(sam_account));
+ sid_copy(psid, pdb_get_user_sid(sam_account));
*psid_name_use = SID_NAME_USER;
pdb_free_sam(&sam_account);
@@ -776,7 +776,7 @@ DOM_SID *local_uid_to_sid(DOM_SID *psid, uid_t uid)
}
if (pdb_getsampwnam(sam_user, pass->pw_name)) {
- sid_copy(psid, (DOM_SID *) pdb_get_user_sid(sam_user));
+ sid_copy(psid, pdb_get_user_sid(sam_user));
} else {
sid_append_rid(psid, fallback_pdb_uid_to_user_rid(uid));
}