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)
libexec/dma/dma.c

index dadf056..9713f8c 100644 (file)
@@ -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);