diff --git a/lib/des/rnd_keys.c b/lib/des/rnd_keys.c index 161dba3e4..9e2878d8a 100644 --- a/lib/des/rnd_keys.c +++ b/lib/des/rnd_keys.c @@ -2,10 +2,7 @@ RCSID("$Id$"); -#include -#ifdef HAVE_SYS_TIME_H #include -#endif /* HAVE_SYS_TIME_H */ #include /* @@ -61,7 +58,7 @@ des_clock_rand(unsigned char *data, int size) /* Setup signal handler */ sa.sa_handler = sigALRM; sa.sa_flags = 0; - sa.sa_mask = 0; + sigemptyset(&sa.sa_mask); sigaction(SIGALRM, &sa, &osa); /* Start timer */