From c3dbbbabdf7c1b6b8d7fe43ade44b555671e1c67 Mon Sep 17 00:00:00 2001 From: dillon Date: Sat, 19 Jan 2002 23:20:02 +0000 Subject: 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. --- usr.sbin/rwhod/rwhod.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin/rwhod') 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, -- cgit v1.1