Skip to content

Commit

Permalink
dma: use st_mtim to make source more POSIXy
Browse files Browse the repository at this point in the history
  • Loading branch information
corecode committed Oct 3, 2009
1 parent 0dc5d89 commit 2e570fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/dma/dma.c
Expand Up @@ -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);
Expand Down

0 comments on commit 2e570fe

Please sign in to comment.