Changeset 9f5ede0 in rtems for cpukit/zlib


Ignore:
Timestamp:
Mar 18, 2011, 10:11:06 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
8c05550
Parents:
676506f3
Message:

Import from zlib-1.2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/zlib/contrib/minizip/crypt.h

    r676506f3 r9f5ede0  
    8888#  endif
    8989
    90 static int crypthead(passwd, buf, bufSize, pkeys, pcrc_32_tab, crcForCrypting)
    91     const char *passwd;         /* password string */
    92     unsigned char *buf;         /* where to write header */
    93     int bufSize;
    94     unsigned long* pkeys;
    95     const unsigned long* pcrc_32_tab;
    96     unsigned long crcForCrypting;
     90static int crypthead(const char* passwd,      /* password string */
     91                     unsigned char* buf,      /* where to write header */
     92                     int bufSize,
     93                     unsigned long* pkeys,
     94                     const unsigned long* pcrc_32_tab,
     95                     unsigned long crcForCrypting)
    9796{
    9897    int n;                       /* index in random header */
     
    125124        buf[n] = (unsigned char)zencode(pkeys, pcrc_32_tab, header[n], t);
    126125    }
    127     buf[n++] = zencode(pkeys, pcrc_32_tab, (int)(crcForCrypting >> 16) & 0xff, t);
    128     buf[n++] = zencode(pkeys, pcrc_32_tab, (int)(crcForCrypting >> 24) & 0xff, t);
     126    buf[n++] = (unsigned char)zencode(pkeys, pcrc_32_tab, (int)(crcForCrypting >> 16) & 0xff, t);
     127    buf[n++] = (unsigned char)zencode(pkeys, pcrc_32_tab, (int)(crcForCrypting >> 24) & 0xff, t);
    129128    return n;
    130129}
Note: See TracChangeset for help on using the changeset viewer.