From: Simon Schubert Date: Sat, 3 Oct 2009 19:18:45 +0000 (+0200) Subject: dma: use st_mtim to make source more POSIXy X-Git-Tag: v2.5.1~7 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/2e570fe12e43301b839dc50f3a35e27a0d9c6b7c dma: use st_mtim to make source more POSIXy --- diff --git a/libexec/dma/dma.c b/libexec/dma/dma.c index dadf0564ec..9713f8c115 100644 --- a/libexec/dma/dma.c +++ b/libexec/dma/dma.c @@ -295,7 +295,7 @@ retry: 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);