PC-Lint warnings fixed:
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Thu, 22 Dec 2011 09:42:24 +0000 (07:42 -0200)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Thu, 22 Dec 2011 09:46:19 +0000 (07:46 -0200)
commitaaaa3b6243154d3dc690b388f23005c256402098
treeb492aa341b8c457930096dad771b1fe09958c323
parentb091ea2c7106bf0f05b9d40dca7effac23595a77
PC-Lint warnings fixed:
- Info 1786: Implicit conversion to Boolean (return) (int to bool);
- Info 1705: static class members may be accessed by the scoping operator;
- Info 713: Loss of precision (arg. no. 2) (unsigned int to int);
- Info 737: Loss of sign in promotion from int to unsigned int in statement 'size -= sizeof(word_array[ 0 ])';
- Info 713: Loss of precision (assignment) (unsigned int to int) in statement 'size -= sizeof(word_array[ 0 ])';
- Info 1773: Attempt to cast away const (or volatile) in statement 'cksum += *(uint8_t*) word_array';
- Replaced all C-style casts by C++ style casts.
src/tcp/tcpheader.cpp
src/tcp/tcpheader.h