Changeset 2337


Ignore:
Timestamp:
05/18/08 21:56:48 (5 years ago)
Author:
sam
Message:
  • Minor memory and speed optimisation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/fuzz.c

    r2324 r2337  
    5151 
    5252/* Per-value byte protection */ 
    53 static int protect[256]; 
    54 static int refuse[256]; 
     53static unsigned char protect[256]; 
     54static unsigned char refuse[256]; 
    5555 
    5656/* Local prototypes */ 
    57 static void readchars(int *, char const *); 
     57static void readchars(unsigned char *, char const *); 
    5858 
    5959extern void _zz_fuzzing(char const *mode) 
     
    185185} 
    186186 
    187 static void readchars(int *table, char const *list) 
     187static void readchars(unsigned char *table, char const *list) 
    188188{ 
    189189    static char const hex[] = "0123456789abcdef0123456789ABCDEF"; 
     
    191191    int a, b; 
    192192 
    193     memset(table, 0, 256 * sizeof(int)); 
     193    memset(table, 0, 256 * sizeof(unsigned char)); 
    194194 
    195195    for(tmp = list, a = b = -1; *tmp; tmp++) 
Note: See TracChangeset for help on using the changeset viewer.