From 2e570fe12e43301b839dc50f3a35e27a0d9c6b7c Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Sat, 3 Oct 2009 21:18:45 +0200 Subject: [PATCH] dma: use st_mtim to make source more POSIXy --- libexec/dma/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/dma/dma.c b/libexec/dma/dma.c index dadf0564ecf6..9713f8c11564 100644 --- a/libexec/dma/dma.c +++ b/libexec/dma/dma.c @@ -295,7 +295,7 @@ deliver(struct qitem *it) exit(1); } if (gettimeofday(&now, NULL) == 0 && - (now.tv_sec - st.st_mtimespec.tv_sec > MAX_TIMEOUT)) { + (now.tv_sec - st.st_mtim.tv_sec > MAX_TIMEOUT)) { asprintf(__DECONST(void *, &errmsg), "Could not deliver for the last %d seconds. Giving up.", MAX_TIMEOUT);