[Date Prev][Date Next] [Chronological] [Thread] [Top]

entropy.c (ITS#337)

Full_Name: Booker C. Bense 
Version: Current Dev(cvs head)
OS: Solaris 2.5.1
Submission from: (NULL) (

- It doesn't compile. Gives this warning 

gcc -g -O2 -I../../include        -I../../include       -c entropy.c -o
entropy.c: In function `lutil_entropy':
entropy.c:82: syntax error before `counter'
entropy.c:114: warning: passing arg 1 of `gettimeofday' from incompatible
pointer type
entropy.c:114: warning: passing arg 2 of `gettimeofday' makes pointer from
integer without a cast
entropy.c:120: `counter' undeclared (first use in this function)
entropy.c:120: (Each undeclared identifier is reported only once
entropy.c:120: for each function it appears in.)
make[2]: *** [entropy.o] Error 1

- changing the declaration of counter on line 82 from sig_atomic_t to int 
allows it to compile, but it still generates the gettimeofday warnings.