diff options
author | grog <grog@FreeBSD.org> | 1999-05-02 22:23:18 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-05-02 22:23:18 +0000 |
commit | c75d7e89c3e63bc9b8e9863a5cc985649edf5f9a (patch) | |
tree | bb0d563ec9da3e788a27cf5421d130fefd71dfa8 /sbin/vinum | |
parent | 3307a11373af5f8e7754c20818dd04bdd77681df (diff) | |
download | FreeBSD-src-c75d7e89c3e63bc9b8e9863a5cc985649edf5f9a.zip FreeBSD-src-c75d7e89c3e63bc9b8e9863a5cc985649edf5f9a.tar.gz |
timestamp:
Assign explicit variable for sec to get it to compile on Alpha.
Submitted by: dfr
Diffstat (limited to 'sbin/vinum')
-rw-r--r-- | sbin/vinum/v.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/vinum/v.c b/sbin/vinum/v.c index 4e92c4f..5ba3687 100644 --- a/sbin/vinum/v.c +++ b/sbin/vinum/v.c @@ -752,13 +752,15 @@ timestamp() struct timeval now; struct tm *date; char datetext[MAXDATETEXT]; + time_t sec; if (history != NULL) { if (gettimeofday(&now, NULL) != 0) { fprintf(stderr, "Can't get time: %s\n", strerror(errno)); return; } - date = localtime(&(time_t) now.tv_sec); + sec = now.tv_sec; + date = localtime(&sec); strftime(datetext, MAXDATETEXT, dateformat, date), fprintf(history, "%s.%06ld ", |