Convert srandom() arg cast to Lite2 style

This commit is contained in:
Andrey A. Chernov 1997-03-17 14:47:56 +00:00
parent dccee1a193
commit 7b50678a36
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: chap.c,v 1.10 1997/02/22 16:10:05 peter Exp $
* $Id: chap.c,v 1.11 1997/03/10 08:04:13 ache Exp $
*
* TODO:
*/
@ -80,7 +80,7 @@ int chapid;
char *cp;
if (!randinit) {
srandom((unsigned)(time(NULL) ^ getpid()));
srandom((unsigned long)(time(NULL) ^ getpid()));
randinit = 1;
}

View File

@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: command.c,v 1.33 1997/03/10 06:21:00 ache Exp $
* $Id: command.c,v 1.34 1997/03/10 08:04:15 ache Exp $
*
*/
#include <sys/types.h>
@ -655,7 +655,7 @@ char **argv;
VarRedialTimeout = -1;
printf("Using random redial timeout.\n");
if (!randinit) {
srandom((unsigned)(time(NULL) ^ getpid()));
srandom((unsigned long)(time(NULL) ^ getpid()));
randinit = 1;
}
}