Ignore:
Timestamp:
10/15/09 18:25:10 (12 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
189f5c6
Parents:
7f1b9d4
Message:

Tidy up a bazillion tiny warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/traceanon/panon.c

    r49f147b ra8f2692  
    2121
    2222
    23 void panon_init_cache() {
     23void panon_init_cache(void) {
    2424        if (enc_cache == 0) {
    2525                enc_cache = (uint32_t *)malloc(CACHESIZE * sizeof(uint32_t));
     
    7878}
    7979
    80 void panon_init(const uint8_t * key) {
     80void panon_init(const char * key) {
    8181        // initialise the 128-bit secret key
    8282        memcpy(m_key, key, 16);
    8383        // initialise the Rijndael cipher
    84         rijndael_init(ECB, Encrypt, key, Key16Bytes,0);
    85         blockEncrypt(key + 16, 128, m_pad);
     84        rijndael_init(ECB, Encrypt, (const UINT8*)key, Key16Bytes,0);
     85        blockEncrypt((const UINT8*)key + 16, 128, m_pad);
    8686        panon_init_cache();
    8787}
Note: See TracChangeset for help on using the changeset viewer.