Author: tpot
Date: 2005-03-20 09:23:37 +0000 (Sun, 20 Mar 2005)
New Revision: 5909

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5909

Log:
Remove some unecessary casts.  Patch from Jason Mader for bugzill #2468.

Modified:
   branches/SAMBA_3_0/source/rpc_server/srv_samr_util.c
   branches/SAMBA_3_0/source/utils/net_rpc_samsync.c
   branches/SAMBA_3_0/source/utils/pdbedit.c
   trunk/source/rpc_server/srv_samr_util.c
   trunk/source/utils/net_rpc_samsync.c
   trunk/source/utils/pdbedit.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_samr_util.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_samr_util.c        2005-03-19 
20:49:17 UTC (rev 5908)
+++ branches/SAMBA_3_0/source/rpc_server/srv_samr_util.c        2005-03-20 
09:23:37 UTC (rev 5909)
@@ -264,7 +264,7 @@
 
                DEBUG(15,("INFO_21 LOGON_HRS.HOURS: %s -> 
%s\n",pdb_get_hours(to),from->logon_hrs.hours));
                pdb_sethexhours(old, pdb_get_hours(to));
-               pdb_sethexhours(new, (const char *)from->logon_hrs.hours);
+               pdb_sethexhours(new, from->logon_hrs.hours);
                if (!strequal(old, new)) {
                        pdb_set_hours(to, from->logon_hrs.hours, PDB_CHANGED);
                }

Modified: branches/SAMBA_3_0/source/utils/net_rpc_samsync.c
===================================================================
--- branches/SAMBA_3_0/source/utils/net_rpc_samsync.c   2005-03-19 20:49:17 UTC 
(rev 5908)
+++ branches/SAMBA_3_0/source/utils/net_rpc_samsync.c   2005-03-20 09:23:37 UTC 
(rev 5909)
@@ -429,7 +429,7 @@
        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);
        }

Modified: branches/SAMBA_3_0/source/utils/pdbedit.c
===================================================================
--- branches/SAMBA_3_0/source/utils/pdbedit.c   2005-03-19 20:49:17 UTC (rev 
5908)
+++ branches/SAMBA_3_0/source/utils/pdbedit.c   2005-03-20 09:23:37 UTC (rev 
5909)
@@ -175,7 +175,7 @@
                        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) {

Modified: trunk/source/rpc_server/srv_samr_util.c
===================================================================
--- trunk/source/rpc_server/srv_samr_util.c     2005-03-19 20:49:17 UTC (rev 
5908)
+++ trunk/source/rpc_server/srv_samr_util.c     2005-03-20 09:23:37 UTC (rev 
5909)
@@ -264,7 +264,7 @@
 
                DEBUG(15,("INFO_21 LOGON_HRS.HOURS: %s -> 
%s\n",pdb_get_hours(to),from->logon_hrs.hours));
                pdb_sethexhours(old, pdb_get_hours(to));
-               pdb_sethexhours(new, (const char *)from->logon_hrs.hours);
+               pdb_sethexhours(new, from->logon_hrs.hours);
                if (!strequal(old, new)) {
                        pdb_set_hours(to, from->logon_hrs.hours, PDB_CHANGED);
                }

Modified: trunk/source/utils/net_rpc_samsync.c
===================================================================
--- trunk/source/utils/net_rpc_samsync.c        2005-03-19 20:49:17 UTC (rev 
5908)
+++ trunk/source/utils/net_rpc_samsync.c        2005-03-20 09:23:37 UTC (rev 
5909)
@@ -429,7 +429,7 @@
        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);
        }

Modified: trunk/source/utils/pdbedit.c
===================================================================
--- trunk/source/utils/pdbedit.c        2005-03-19 20:49:17 UTC (rev 5908)
+++ trunk/source/utils/pdbedit.c        2005-03-20 09:23:37 UTC (rev 5909)
@@ -196,7 +196,7 @@
                        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) {

Reply via email to