]> git.ipfire.org Git - people/ms/dma.git/commitdiff
dma: use st_mtim to make source more POSIXy
authorSimon Schubert <corecode@dragonflybsd.org>
Sat, 3 Oct 2009 19:18:45 +0000 (21:18 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Sat, 3 Oct 2009 20:45:30 +0000 (22:45 +0200)
dma.c

diff --git a/dma.c b/dma.c
index dadf0564ecf6dfa24cd328a3a67b69c8e19343d4..9713f8c11564bc2ba99cf53987026b65fd77ed90 100644 (file)
--- 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);