projects
/
srvx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert time-related variables to consistently use "unsigned long".
[srvx.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index 1cf2da723f74bebade1069b93e83190c937f99d0..2438868d2789da61376b9f9cb440acedfa2da8f8 100644
(file)
--- 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();
* mostly to get the right value of "now" for when we do the
* irc_introduce. */
replay_read_line();
- boot_time = now;
} else {
} else {
-
boot_time = time(&now
);
+
now = time(NULL
);
}
}
+ boot_time = now;
fprintf(stdout, "Initializing daemon...\n");
if (!conf_read(services_config)) {
fprintf(stdout, "Initializing daemon...\n");
if (!conf_read(services_config)) {
@@
-282,7
+282,8
@@
int main(int argc, char *argv[])
free(msg);
}
} else {
free(msg);
}
} else {
- srand(time(&now));
+ now = time(NULL);
+ srand(now);
ioset_run();
}
return 0;
ioset_run();
}
return 0;