diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2000-08-23 08:48:36 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2000-08-23 08:48:36 +0000 |
| commit | b3037496a028dec1396023d0e4fe34736e7b4453 (patch) | |
| tree | 8ac2f037b1737d071b49533c13770e2598cdc612 | |
| parent | 60719a69b2a9bae8eab341f1da5a002300e3d960 (diff) | |
Notes
| -rw-r--r-- | sbin/ccdconfig/ccdconfig.c | 8 | ||||
| -rw-r--r-- | sbin/ping6/ping6.c | 8 | ||||
| -rw-r--r-- | usr.sbin/traceroute6/traceroute6.c | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/sbin/ccdconfig/ccdconfig.c b/sbin/ccdconfig/ccdconfig.c index c5ccd8f042fc..9203dccc1b27 100644 --- a/sbin/ccdconfig/ccdconfig.c +++ b/sbin/ccdconfig/ccdconfig.c @@ -487,8 +487,8 @@ do_io(path, cmd, cciop) #define KVM_ABORT(kd, str) { \ (void)kvm_close((kd)); \ - warnx((str)); \ - warnx(kvm_geterr((kd))); \ + warnx("%s", (str)); \ + warnx("%s", kvm_geterr((kd))); \ return (1); \ } @@ -622,7 +622,7 @@ print_ccd_info(cs, kd) readsize) != readsize) { printf("\n"); warnx("can't read component info"); - warnx(kvm_geterr(kd)); + warnx("%s", kvm_geterr(kd)); goto done; } @@ -632,7 +632,7 @@ print_ccd_info(cs, kd) cip[i].ci_pathlen) != cip[i].ci_pathlen) { printf("\n"); warnx("can't read component pathname"); - warnx(kvm_geterr(kd)); + warnx("%s", kvm_geterr(kd)); goto done; } printf((i + 1 < cs->sc_nccdisks) ? "%s " : "%s\n", path); diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c index 06e68398f149..e25801358804 100644 --- a/sbin/ping6/ping6.c +++ b/sbin/ping6/ping6.c @@ -547,9 +547,9 @@ main(argc, argv) #ifdef IPSEC_POLICY_IPSEC if (options & F_POLICY) { if (setpolicy(s, policy_in) < 0) - errx(1, ipsec_strerror()); + errx(1, "%s", ipsec_strerror()); if (setpolicy(s, policy_out) < 0) - errx(1, ipsec_strerror()); + errx(1, "%s", ipsec_strerror()); } #else if (options & F_AUTHHDR) { @@ -727,7 +727,7 @@ main(argc, argv) struct addrinfo *iaip; if ((error = getaddrinfo(argv[hops], NULL, &hints, &iaip))) - errx(1, gai_strerror(error)); + errx(1, "%s", gai_strerror(error)); if (SIN6(res->ai_addr)->sin6_family != AF_INET6) errx(1, "bad addr family of an intermediate addr"); @@ -1901,7 +1901,7 @@ setpolicy(so, policy) buf = ipsec_set_policy(policy, strlen(policy)); if (buf == NULL) - errx(1, ipsec_strerror()); + errx(1, "%s", ipsec_strerror()); if (setsockopt(s, IPPROTO_IPV6, IPV6_IPSEC_POLICY, buf, ipsec_get_policylen(buf)) < 0) warnx("Unable to set IPSec policy"); diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c index 163cf0c9259d..d971318260d3 100644 --- a/usr.sbin/traceroute6/traceroute6.c +++ b/usr.sbin/traceroute6/traceroute6.c @@ -600,9 +600,9 @@ main(argc, argv) * turned off. */ if (setpolicy(rcvsock, "in bypass") < 0) - errx(1, ipsec_strerror()); + errx(1, "%s", ipsec_strerror()); if (setpolicy(rcvsock, "out bypass") < 0) - errx(1, ipsec_strerror()); + errx(1, "%s", ipsec_strerror()); #else { int level = IPSEC_LEVEL_NONE; @@ -674,9 +674,9 @@ main(argc, argv) * turned off. */ if (setpolicy(sndsock, "in bypass") < 0) - errx(1, ipsec_strerror()); + errx(1, "%s", ipsec_strerror()); if (setpolicy(sndsock, "out bypass") < 0) - errx(1, ipsec_strerror()); + errx(1, "%s", ipsec_strerror()); #else { int level = IPSEC_LEVEL_BYPASS; |
