X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fparser.c;h=bfa645643fde76932c19559ed7bfec597f2a2429;hb=2312de30ce2be53f81c4eaaa772ffff21511b509;hp=2316299249c680dd4acaa9c13faf14261469785d;hpb=f104d082727461632e7a5cc1d2a854f0ad66db07;p=lttv.git diff --git a/ltt/branches/poly/ltt/parser.c b/ltt/branches/poly/ltt/parser.c index 23162992..bfa64564 100644 --- a/ltt/branches/poly/ltt/parser.c +++ b/ltt/branches/poly/ltt/parser.c @@ -1239,12 +1239,13 @@ void generateChecksum(char* facName, unsigned long crc ; int pos; event_t * ev; + unsigned int i; crc = crc32(facName); for(pos = 0; pos < events->position; pos++){ ev = (event_t *)(events->array[pos]); crc = partial_crc32(ev->name, crc); - for(unsigned int i = 0; i < ev->fields.position; i++) { + for(i = 0; i < ev->fields.position; i++) { field_t *f = (field_t*)ev->fields.array[i]; crc = partial_crc32(f->name, crc); crc = getTypeChecksum(crc, f->type);