summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd/inetd.c
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>2000-01-28 20:06:15 +0000
committershin <shin@FreeBSD.org>2000-01-28 20:06:15 +0000
commitae4a0b7c525e452bfe97e01c4ed264d8882a0a20 (patch)
tree19fd2f15e6b495006086d9dce03b86e661c8d537 /usr.sbin/inetd/inetd.c
parent3f107b49a959e8eb9670e753fa3e82ec287d2901 (diff)
downloadFreeBSD-src-ae4a0b7c525e452bfe97e01c4ed264d8882a0a20.zip
FreeBSD-src-ae4a0b7c525e452bfe97e01c4ed264d8882a0a20.tar.gz
Fix inconsistent debug output. (syslog -> warnx)
Specified by: sheldonh Reviewed by: des
Diffstat (limited to 'usr.sbin/inetd/inetd.c')
-rw-r--r--usr.sbin/inetd/inetd.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index f6e2ba2..05da830 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -1257,12 +1257,10 @@ ipsecsetup(sep)
if (buf != NULL) {
if (setsockopt(sep->se_fd, level, opt,
buf, ipsec_get_policylen(buf)) < 0 &&
- debug != 0) {
- syslog(LOG_ERR,
- "%s/%s: ipsec initialization failed; %s",
- sep->se_service, sep->se_proto,
- policy_in);
- }
+ debug != 0)
+ warnx("%s/%s: ipsec initialization failed; %s",
+ sep->se_service, sep->se_proto,
+ policy_in);
free(buf);
} else
syslog(LOG_ERR, "invalid security policy \"%s\"",
@@ -1273,12 +1271,10 @@ ipsecsetup(sep)
if (buf != NULL) {
if (setsockopt(sep->se_fd, level, opt,
buf, ipsec_get_policylen(buf)) < 0 &&
- debug != 0) {
- syslog(LOG_ERR,
- "%s/%s: ipsec initialization failed; %s",
- sep->se_service, sep->se_proto,
- policy_out);
- }
+ debug != 0)
+ warnx("%s/%s: ipsec initialization failed; %s",
+ sep->se_service, sep->se_proto,
+ policy_out);
free(buf);
} else
syslog(LOG_ERR, "invalid security policy \"%s\"",
OpenPOWER on IntegriCloud