diff options
author | Tim Potter <tpot@samba.org> | 2005-03-20 09:23:37 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:08 -0500 |
commit | 5d88feaaad77bbb8a172c911624ccb07d6050da4 (patch) | |
tree | ccfc6de03073f2d09c097906373ca728855a82ec /source3/utils | |
parent | 0fcb427f78cbce93be85720656c767f545cd84ff (diff) | |
download | samba-5d88feaaad77bbb8a172c911624ccb07d6050da4.tar.gz samba-5d88feaaad77bbb8a172c911624ccb07d6050da4.tar.bz2 samba-5d88feaaad77bbb8a172c911624ccb07d6050da4.zip |
r5909: Remove some unecessary casts. Patch from Jason Mader for bugzill #2468.
(This used to be commit ede9fd08cf0ce04528f73c74e2345ba46d26f1e2)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc_samsync.c | 2 | ||||
-rw-r--r-- | source3/utils/pdbedit.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c index 49aef2a23c..3ddfc5c9d9 100644 --- a/source3/utils/net_rpc_samsync.c +++ b/source3/utils/net_rpc_samsync.c @@ -429,7 +429,7 @@ sam_account_from_delta(SAM_ACCOUNT *account, SAM_ACCOUNT_INFO *delta) if (delta->buf_logon_hrs.buffer) { pstring old, new; pdb_sethexhours(old, pdb_get_hours(account)); - pdb_sethexhours(new, (const char *)delta->buf_logon_hrs.buffer); + pdb_sethexhours(new, delta->buf_logon_hrs.buffer); if (!strequal(old, new)) pdb_set_hours(account, (const char *)delta->buf_logon_hrs.buffer, PDB_CHANGED); } diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c index e0d48edc56..88ec6b1f4f 100644 --- a/source3/utils/pdbedit.c +++ b/source3/utils/pdbedit.c @@ -175,7 +175,7 @@ static int print_sam_info (SAM_ACCOUNT *sam_pwent, BOOL verbosity, BOOL smbpwdst pdb_get_bad_password_count(sam_pwent)); hours = pdb_get_hours(sam_pwent); - pdb_sethexhours(temp, (const char *)hours); + pdb_sethexhours(temp, hours); printf ("Logon hours : %s\n", temp); } else if (smbpwdstyle) { |