diff options
author | dillon <dillon@FreeBSD.org> | 2002-01-19 23:20:02 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2002-01-19 23:20:02 +0000 |
commit | c3dbbbabdf7c1b6b8d7fe43ade44b555671e1c67 (patch) | |
tree | 262f00c422f3272c4031c870d746ed14c2f757d5 /sbin/restore | |
parent | 6f44d9644f580c480b97e8c64ced8a7be849944e (diff) | |
download | FreeBSD-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 'sbin/restore')
-rw-r--r-- | sbin/restore/tape.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index 9be7d43..88520b5 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -232,8 +232,8 @@ setup() } if (vflag || command == 't') printdumpinfo(); - dumptime = time32_to_time(spcl.c_ddate); - dumpdate = time32_to_time(spcl.c_date); + dumptime = _time32_to_time(spcl.c_ddate); + dumpdate = _time32_to_time(spcl.c_date); if (stat(".", &stbuf) < 0) { fprintf(stderr, "cannot stat .: %s\n", strerror(errno)); done(1); @@ -404,9 +404,9 @@ gethdr: volno = 0; goto again; } - if (time32_to_time(tmpbuf.c_date) != dumpdate || - time32_to_time(tmpbuf.c_ddate) != dumptime) { - time_t t = time32_to_time(tmpbuf.c_date); + if (_time32_to_time(tmpbuf.c_date) != dumpdate || + _time32_to_time(tmpbuf.c_ddate) != dumptime) { + time_t t = _time32_to_time(tmpbuf.c_date); fprintf(stderr, "Wrong dump date\n\tgot: %s", ctime(&t)); fprintf(stderr, "\twanted: %s", ctime(&dumpdate)); volno = 0; @@ -510,9 +510,9 @@ void printdumpinfo() { time_t t; - t = time32_to_time(spcl.c_date); + t = _time32_to_time(spcl.c_date); fprintf(stdout, "Dump date: %s", ctime(&t)); - t = time32_to_time(spcl.c_ddate); + t = _time32_to_time(spcl.c_ddate); fprintf(stdout, "Dumped from: %s", (spcl.c_ddate == 0) ? "the epoch\n" : ctime(&t)); if (spcl.c_host[0] == '\0') @@ -1231,7 +1231,7 @@ findinode(header) if (header->c_magic != NFS_MAGIC) { skipcnt++; while (gethead(header) == FAIL || - time32_to_time(header->c_date) != dumpdate) + _time32_to_time(header->c_date) != dumpdate) skipcnt++; } switch (header->c_type) { @@ -1244,7 +1244,7 @@ findinode(header) if (header->c_addr[i]) readtape(buf); while (gethead(header) == FAIL || - time32_to_time(header->c_date) != dumpdate) + _time32_to_time(header->c_date) != dumpdate) skipcnt++; break; |