X-Git-Url: http://git.pk910.de/?p=srvx.git;a=blobdiff_plain;f=src%2Fmain.c;h=2438868d2789da61376b9f9cb440acedfa2da8f8;hp=1cf2da723f74bebade1069b93e83190c937f99d0;hb=4a2c9aa9ab119a212d78c6a3a73261de56800251;hpb=007cc230a68daa6785f28a979e67ad9e67b1c87a diff --git a/src/main.c b/src/main.c index 1cf2da7..2438868 100644 --- a/src/main.c +++ b/src/main.c @@ -193,10 +193,10 @@ int main(int argc, char *argv[]) * mostly to get the right value of "now" for when we do the * irc_introduce. */ replay_read_line(); - boot_time = now; } else { - boot_time = time(&now); + now = time(NULL); } + boot_time = now; fprintf(stdout, "Initializing daemon...\n"); if (!conf_read(services_config)) { @@ -282,7 +282,8 @@ int main(int argc, char *argv[]) free(msg); } } else { - srand(time(&now)); + now = time(NULL); + srand(now); ioset_run(); } return 0;