aboutsummaryrefslogtreecommitdiff
path: root/sbin/vinum/v.c
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>1999-05-02 22:23:18 +0000
committerGreg Lehey <grog@FreeBSD.org>1999-05-02 22:23:18 +0000
commit1b3859ce9a9514ed69c4ab7dcb98ee11ee33cfe4 (patch)
tree8e85deaf01b6edd3016a1b533b395cd341408a9d /sbin/vinum/v.c
parent87f0e52becae502e0d4ebfba5aaf16b8eb018bcd (diff)
downloadsrc-1b3859ce9a9514ed69c4ab7dcb98ee11ee33cfe4.tar.gz
src-1b3859ce9a9514ed69c4ab7dcb98ee11ee33cfe4.zip
timestamp:
Assign explicit variable for sec to get it to compile on Alpha. Submitted by: dfr
Notes
Notes: svn path=/head/; revision=46348
Diffstat (limited to 'sbin/vinum/v.c')
-rw-r--r--sbin/vinum/v.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/vinum/v.c b/sbin/vinum/v.c
index 4e92c4f07280..5ba368777d58 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 ",