X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmain.c;h=2438868d2789da61376b9f9cb440acedfa2da8f8;hb=4a2c9aa9ab119a212d78c6a3a73261de56800251;hp=1cf2da723f74bebade1069b93e83190c937f99d0;hpb=022bd2b4a123c7860a7c9529e253c569c1613933;p=srvx.git 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;