aboutsummaryrefslogtreecommitdiffstats
path: root/smtpd/parser.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2013-10-25 20:13:27 +0200
committerGilles Chehade <gilles@poolp.org>2013-10-25 20:13:27 +0200
commitd85a941f3c0c59251ee1896a234d35a1f12f33b1 (patch)
treefbd4f188fa76556e2c2dcafb33c2b6d9bebf505a /smtpd/parser.c
parentfix format for time_t (diff)
downloadOpenSMTPD-d85a941f3c0c59251ee1896a234d35a1f12f33b1.tar.xz
OpenSMTPD-d85a941f3c0c59251ee1896a234d35a1f12f33b1.zip
replace all instances of %i with %d to match OpenBSD standards
Diffstat (limited to 'smtpd/parser.c')
-rw-r--r--smtpd/parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/smtpd/parser.c b/smtpd/parser.c
index fff88012..56c356bb 100644
--- a/smtpd/parser.c
+++ b/smtpd/parser.c
@@ -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");