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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fbb30b2f1172186cd87d3a0f077f2f234dd250c;p=people%2Fms%2Fdma.git dma: use st_mtim to make source more POSIXy --- diff --git a/dma.c b/dma.c index dadf056..9713f8c 100644 --- a/dma.c +++ b/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);