summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rwhod
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2002-01-19 23:20:02 +0000
committerdillon <dillon@FreeBSD.org>2002-01-19 23:20:02 +0000
commitc3dbbbabdf7c1b6b8d7fe43ade44b555671e1c67 (patch)
tree262f00c422f3272c4031c870d746ed14c2f757d5 /usr.sbin/rwhod
parent6f44d9644f580c480b97e8c64ced8a7be849944e (diff)
downloadFreeBSD-src-c3dbbbabdf7c1b6b8d7fe43ade44b555671e1c67.zip
FreeBSD-src-c3dbbbabdf7c1b6b8d7fe43ade44b555671e1c67.tar.gz
I've been meaning to do this for a while. Add an underscore to the
time_to_xxx() and xxx_to_time() functions. e.g. _time_to_xxx() instead of time_to_xxx(), to make it more obvious that these are stopgap functions & placemarkers and not meant to create a defacto standard. They will eventually be replaced when a real standard comes out of committee.
Diffstat (limited to 'usr.sbin/rwhod')
-rw-r--r--usr.sbin/rwhod/rwhod.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/rwhod/rwhod.c b/usr.sbin/rwhod/rwhod.c
index 88e85bc..3e521fd 100644
--- a/usr.sbin/rwhod/rwhod.c
+++ b/usr.sbin/rwhod/rwhod.c
@@ -327,7 +327,7 @@ main(argc, argv)
}
#endif
(void) time(&t);
- wd.wd_recvtime = time_to_int(t);
+ wd.wd_recvtime = _time_to_int(t);
(void) write(whod, (char *)&wd, cc);
if (fstat(whod, &st) < 0 || st.st_size > cc)
ftruncate(whod, cc);
@@ -464,7 +464,7 @@ onalrm(signo)
for (i = 0; i < 3; i++)
mywd.wd_loadav[i] = htonl((u_long)(avenrun[i] * 100));
cc = (char *)we - (char *)&mywd;
- mywd.wd_sendtime = htonl(time_to_time32(time(NULL)));
+ mywd.wd_sendtime = htonl(_time_to_time32(time(NULL)));
mywd.wd_vers = WHODVERSION;
mywd.wd_type = WHODTYPE_STATUS;
if (multicast_mode == SCOPED_MULTICAST) {
@@ -514,7 +514,7 @@ getboottime(signo)
syslog(LOG_ERR, "cannot get boottime: %m");
exit(1);
}
- mywd.wd_boottime = htonl(time_to_time32(tm.tv_sec));
+ mywd.wd_boottime = htonl(_time_to_time32(tm.tv_sec));
}
void
@@ -702,7 +702,7 @@ Sendto(s, buf, cc, flags, to, tolen)
ntohl(w->wd_loadav[2]) / 100.0);
cc -= WHDRSIZE;
for (we = w->wd_we, cc /= sizeof(struct whoent); cc > 0; cc--, we++) {
- time_t t = time32_to_time(ntohl(we->we_utmp.out_time));
+ time_t t = _time32_to_time(ntohl(we->we_utmp.out_time));
printf("%-8.8s %s:%s %.12s",
we->we_utmp.out_name,
w->wd_hostname, we->we_utmp.out_line,
OpenPOWER on IntegriCloud