diff options
| author | 2013-10-26 12:27:58 +0000 | |
|---|---|---|
| committer | 2013-10-26 12:27:58 +0000 | |
| commit | d7bcae4d6d4d5ecc8bada62c46fe63bb4ddc3d0c (patch) | |
| tree | 6ce7e58eff257a711554f5d1b8843ce9f99f3886 /usr.sbin/smtpd/parser.c | |
| parent | fix crash when using ProxyCommand caused by previous commit - was calling (diff) | |
| download | wireguard-openbsd-d7bcae4d6d4d5ecc8bada62c46fe63bb4ddc3d0c.tar.xz wireguard-openbsd-d7bcae4d6d4d5ecc8bada62c46fe63bb4ddc3d0c.zip | |
%i -> %d in format strings
Diffstat (limited to 'usr.sbin/smtpd/parser.c')
| -rw-r--r-- | usr.sbin/smtpd/parser.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/parser.c b/usr.sbin/smtpd/parser.c index aea11b37921..0c8d12db11d 100644 --- a/usr.sbin/smtpd/parser.c +++ b/usr.sbin/smtpd/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.36 2013/10/25 18:58:10 eric Exp $ */ +/* $OpenBSD: parser.c,v 1.37 2013/10/26 12:27:59 eric Exp $ */ /* * Copyright (c) 2013 Eric Faurot <eric@openbsd.org> @@ -165,7 +165,7 @@ cmd_check(const char *str, struct node *node, struct parameter *res) return (1); default: - errx(1, "bad token type: %i", node->type); + errx(1, "bad token type: %d", node->type); return (0); } } @@ -239,7 +239,7 @@ cmd_show_params(int argc, struct parameter *argv) printf(" str:\"%s\"", argv[i].u.u_str); break; case P_INT: - printf(" int:%i", argv[i].u.u_int); + printf(" int:%d", argv[i].u.u_int); break; case P_MSGID: printf(" msgid:%08"PRIx32, argv[i].u.u_msgid); @@ -251,7 +251,7 @@ cmd_show_params(int argc, struct parameter *argv) printf(" routeid:%016"PRIx64, argv[i].u.u_routeid); break; default: - printf(" ???:%i", argv[i].type); + printf(" ???:%d", argv[i].type); } } printf ("\n"); |
