Joerg Mayer wrote:
> Hello,
>
> I've got a problem with the generation of the register.c file:
>
> jmayer@egg:~/work/wireshark/trunk/epan/dissectors> sort register.c | uniq -c | grep -v " 1 "
> 2
> 2 {
> 2 }
> 2 {extern void proto_register_cisco_oui (void); proto_register_cisco_oui ();}
> 2 void
>
> that block is in there twice. No idea why, it's only once in the cache file.
Are you looking at the strings in the cache file or dumping it out, e.g.
with
import pickle, pprint
pprint.pprint(pickle.load(open('epan/dissectors/register-cache.pkl')))
? I can't find anything that might cause duplicates in
make-dissector-reg.py, but it probably wouldn't hurt to check for
duplicates before we write out the lists of routines.