Fix build with gcc

This commit is contained in:
Baptiste Daroussin 2014-02-21 13:17:10 +00:00
parent f31fd4758a
commit 22354f09c8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=262295
3 changed files with 5 additions and 5 deletions

View File

@ -121,7 +121,7 @@ parse_authfile(const char *path)
au = calloc(1, sizeof(*au));
if (au == NULL)
errlog(1, NULL);
errlog(1, "calloc failed");
data = strdup(line);
au->login = strsep(&data, "|");

View File

@ -464,7 +464,7 @@ main(int argc, char **argv)
goto skipopts;
} else if (strcmp(argv[0], "newaliases") == 0) {
logident_base = "dma";
setlogident(NULL);
setlogident("%s", logident_base);
if (read_aliases() != 0)
errx(1, "could not parse aliases file `%s'", config.aliases);
@ -563,7 +563,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;
@ -595,7 +595,7 @@ main(int argc, char **argv)
errlog(1, "could not parse 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);

View File

@ -332,7 +332,7 @@ parse_addrs(struct parse_state *ps, char *s, struct queue *queue)
ps->pos = 0;
addr = strdup(ps->addr);
if (addr == NULL)
errlog(1, NULL);
errlog(1, "strdup failed");
if (add_recp(queue, addr, EXPAND_WILDCARD) != 0)
errlogx(1, "invalid recipient `%s'", addr);