projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes to improve portability (especially to OS X, Solaris, OpenBSD).
[ircu2.10.12-pk.git]
/
ircd
/
uping.c
diff --git
a/ircd/uping.c
b/ircd/uping.c
index 3e69622b052d5ace3607ae7b8b25c592a48fe4be..3c9ea1e1de233d34e6149ced2082733de10d98a3 100644
(file)
--- a/
ircd/uping.c
+++ b/
ircd/uping.c
@@
-298,7
+298,7
@@
void uping_send(struct UPing* pptr)
memset(buf, 0, sizeof(buf));
gettimeofday(&tv, NULL);
memset(buf, 0, sizeof(buf));
gettimeofday(&tv, NULL);
- sprintf(buf, " %10lu%c%6lu",
tv.tv_sec, '\0',
tv.tv_usec);
+ sprintf(buf, " %10lu%c%6lu",
(unsigned long)tv.tv_sec, '\0', (unsigned long)
tv.tv_usec);
Debug((DEBUG_SEND, "send_ping: sending [%s %s] to %s.%d on %d",
buf, &buf[12],
Debug((DEBUG_SEND, "send_ping: sending [%s %s] to %s.%d on %d",
buf, &buf[12],