summaryrefslogtreecommitdiffstats
path: root/usr.bin/last/last.c
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.bin/last/last.c
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.bin/last/last.c')
-rw-r--r--usr.bin/last/last.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/last/last.c b/usr.bin/last/last.c
index b3697a3..c9518a3 100644
--- a/usr.bin/last/last.c
+++ b/usr.bin/last/last.c
@@ -211,7 +211,7 @@ wtmp()
bl = (stb.st_size + sizeof(buf) - 1) / sizeof(buf);
(void)time(&t);
- buf[0].ut_time = time_to_int(t);
+ buf[0].ut_time = _time_to_int(t);
(void)signal(SIGINT, onintr);
(void)signal(SIGQUIT, onintr);
@@ -248,7 +248,7 @@ wtmp()
* unless flagged for
*/
if (!snaptime && want(bp)) {
- t = int_to_time(bp->ut_time);
+ t = _int_to_time(bp->ut_time);
tm = localtime(&t);
(void) strftime(ct, sizeof(ct),
d_first ? "%a %e %b %R" :
@@ -272,7 +272,7 @@ wtmp()
if ((bp->ut_line[0] == '{' || bp->ut_line[0] == '|')
&& !bp->ut_line[1]) {
if (want(bp) && !snaptime) {
- t = int_to_time(bp->ut_time);
+ t = _int_to_time(bp->ut_time);
tm = localtime(&t);
(void) strftime(ct, sizeof(ct),
d_first ? "%a %e %b %R" :
@@ -320,7 +320,7 @@ wtmp()
bp->ut_line[3] = '\0';
else if (!strncmp(bp->ut_line, "uucp", sizeof("uucp") - 1))
bp->ut_line[4] = '\0';
- t = int_to_time(bp->ut_time);
+ t = _int_to_time(bp->ut_time);
tm = localtime(&t);
(void) strftime(ct, sizeof(ct),
d_first ? "%a %e %b %R" :
@@ -366,7 +366,7 @@ wtmp()
tt->logout = bp->ut_time;
}
}
- t = int_to_time(buf[0].ut_time);
+ t = _int_to_time(buf[0].ut_time);
tm = localtime(&t);
(void) strftime(ct, sizeof(ct), "\nwtmp begins %+\n", tm);
printf("%s", ct);
@@ -566,7 +566,7 @@ onintr(signo)
{
char ct[80];
struct tm *tm;
- time_t t = int_to_time(buf[0].ut_time);
+ time_t t = _int_to_time(buf[0].ut_time);
tm = localtime(&t);
(void) strftime(ct, sizeof(ct),
OpenPOWER on IntegriCloud