mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
fff82c442c
- Update to 0.9 [1] - USE_GITHUB framework - Remove useless LICENSE_FILE - Trim Makefile header - Mark IGNORE for 8.x PR: ports/182058 Submitted by: bz (maintainer)
30 lines
937 B
C
30 lines
937 B
C
--- dma.c.orig 2013-08-22 10:56:28.000000000 +0000
|
|
+++ dma.c 2013-08-22 11:03:59.000000000 +0000
|
|
@@ -343,7 +343,7 @@ retry:
|
|
exit(1);
|
|
}
|
|
if (gettimeofday(&now, NULL) == 0 &&
|
|
- (now.tv_sec - st.st_mtim.tv_sec > MAX_TIMEOUT)) {
|
|
+ (now.tv_sec - st.st_mtime > MAX_TIMEOUT)) {
|
|
snprintf(errmsg, sizeof(errmsg),
|
|
"Could not deliver for the last %d seconds. Giving up.",
|
|
MAX_TIMEOUT);
|
|
@@ -560,7 +560,7 @@ main(int argc, char **argv)
|
|
skipopts:
|
|
if (logident_base == NULL)
|
|
logident_base = "dma";
|
|
- setlogident(NULL);
|
|
+ setlogident("%s", logident_base);
|
|
|
|
act.sa_handler = sighup_handler;
|
|
act.sa_flags = 0;
|
|
@@ -598,7 +598,7 @@ skipopts:
|
|
errlog(1, "can not read aliases file `%s'", config.aliases);
|
|
|
|
if ((sender = set_from(&queue, sender)) == NULL)
|
|
- errlog(1, NULL);
|
|
+ errlog(1, "set_from failed");
|
|
|
|
if (newspoolf(&queue) != 0)
|
|
errlog(1, "can not create temp file in `%s'", config.spooldir);
|