<div>Hi, </div>
<div> </div>
<div>I am beginner to splint. When I use splint against this code:</div>
<div> </div>
<div>#include <pthread.h></div>
<div> </div>
<div>int main (void)<br>{<br> return 0;<br>}</div>
<div> </div>
<div> </div>
<div>I get the following:</div>
<div>/usr/include/bits/types.h:192:24: Datatype __socklen_t declared with<br> inconsistent type: unsigned int<br> A function, variable or constant is redefined with a different type. (Use<br>
-incondefs to inhibit warning)<br> load file unix.lcd: Specification of __socklen_t:<br> arbitrary unsigned integral type<br>/usr/include/bits/pthreadtypes.h:36:27:<br> Datatype pthread_t declared with inconsistent type: unsigned long int<br>
load file unix.lcd: Specification of pthread_t: arbitrary integral type<br>/usr/include/bits/pthreadtypes.h:43:3:<br> Datatype pthread_attr_t declared with inconsistent type:<br> union { char [36] __size; long int __align; }<br>
load file unix.lcd: Specification of pthread_attr_t: arbitrary integral type<br>/usr/include/bits/pthreadtypes.h:73:3:<br> Datatype pthread_mutex_t declared with inconsistent type:<br> union { struct __pthread_mutex_s __data; char [24] __size;<br>
long int __align; }<br> load file unix.lcd: Specification of pthread_mutex_t:<br> arbitrary integral type<br>/usr/include/bits/pthreadtypes.h:79:3:<br> Datatype pthread_mutexattr_t declared with inconsistent type:<br>
union { char [4] __size; long int __align; }<br> load file unix.lcd: Specification of pthread_mutexattr_t:<br> arbitrary integral type</div>
<div> </div>
<div>I see that there is a mismatch between what is declared in the bits/types.h and unix.h, unix.lcd. But how do I resolve this ?<br></div>