Squash some NULL printf format warnings, providing better error messages

to the user in the process.
This commit is contained in:
thorpej 1999-07-02 18:13:45 +00:00
parent c04f585990
commit 8cc65d3aa6
1 changed files with 2 additions and 2 deletions

View File

@ -527,7 +527,7 @@ main(argc, argv)
errx(1, ipsec_strerror());
if (setsockopt(rcvsock, IPPROTO_IPV6, IPV6_IPSEC_POLICY,
buf, len) < 0)
err(1, NULL);
err(1, "Unable to set IPSec policy");
}
#else
{
@ -586,7 +586,7 @@ main(argc, argv)
errx(1, ipsec_strerror());
if (setsockopt(sndsock, IPPROTO_IPV6, IPV6_IPSEC_POLICY,
buf, len) < 0)
err(1, NULL);
err(1, "Unable to set IPSec policy");
}
#else
{