Changeset 84 for trunk/lib/smb_deps.c


Ignore:
Timestamp:
01/19/07 09:52:25 (17 years ago)
Author:
tim
Message:

rearranged structure contents to reduce fragmentation on 64 bit systems.

make regfi interface return const structures to help enforce separation

removed a little cruft from some parsing functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/smb_deps.c

    r65 r84  
    101101 converts this to real GMT.
    102102****************************************************************************/
    103 time_t nt_time_to_unix(NTTIME *nt)
     103time_t nt_time_to_unix(const NTTIME* nt)
    104104{
    105105  double d;
     
    316316 Stream an array of uint32s. Length is number of uint32s.
    317317 ********************************************************************/
    318 bool prs_uint32s(bool charmode, const char *name, prs_struct *ps,
     318bool prs_uint32s(const char *name, prs_struct *ps,
    319319                 int depth, uint32 *data32s, int len)
    320320{
     
    462462 Stream an array of uint8s. Length is number of uint8s.
    463463 ********************************************************************/
    464 bool prs_uint8s(bool charmode, const char *name, prs_struct *ps, int depth,
     464bool prs_uint8s(const char *name, prs_struct *ps, int depth,
    465465                uint8* data8s, int len)
    466466{
     
    526526    return false;
    527527 
    528   if(!prs_uint8s (false, "data   ", ps, depth,
     528  if(!prs_uint8s ("data   ", ps, depth,
    529529                  uuid->clock_seq, sizeof(uuid->clock_seq)))
    530530    return false;
    531531
    532   if(!prs_uint8s (false, "data   ", ps, depth, uuid->node, sizeof(uuid->node)))
     532  if(!prs_uint8s ("data   ", ps, depth, uuid->node, sizeof(uuid->node)))
    533533    return false;
    534534 
     
    587587    sid->num_auths = MAXSUBAUTHS;
    588588
    589   if(!prs_uint32s(false, "sub_auths ", ps, depth,
     589  if(!prs_uint32s("sub_auths ", ps, depth,
    590590                  sid->sub_auths, sid->num_auths))
    591591  { return false; }
Note: See TracChangeset for help on using the changeset viewer.