mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-01 08:16:38 +02:00
src/random.c: remove unused variable and reorder struct on Windows.
This commit is contained in:
+2
-4
@@ -438,18 +438,16 @@ void init_random()
|
||||
{
|
||||
struct {
|
||||
#ifndef _WIN32
|
||||
struct timeval nowt; /* time */
|
||||
struct timeval nowt; /* time */
|
||||
char rnd[32]; /* /dev/urandom */
|
||||
#else
|
||||
MEMORYSTATUS mstat; /* memory status */
|
||||
struct _timeb nowt; /* time */
|
||||
MEMORYSTATUS mstat; /* memory status */
|
||||
#endif
|
||||
} rdat;
|
||||
|
||||
#ifndef _WIN32
|
||||
int fd;
|
||||
#else
|
||||
MEMORYSTATUS mstat;
|
||||
#endif
|
||||
|
||||
_rs_stir();
|
||||
|
||||
Reference in New Issue
Block a user