aboutsummaryrefslogtreecommitdiffstats
path: root/smtpd/parser.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2013-10-25 20:18:01 +0200
committerGilles Chehade <gilles@poolp.org>2013-10-25 20:18:01 +0200
commit9126bcef318139c476971a8490f422ce2a91925a (patch)
tree594ece3b5aede5f1633364e8384b1091fce49f8c /smtpd/parser.c
parentMerge branch 'master' into portable (diff)
parentmore %i -> %d (diff)
downloadOpenSMTPD-9126bcef318139c476971a8490f422ce2a91925a.tar.xz
OpenSMTPD-9126bcef318139c476971a8490f422ce2a91925a.zip
Merge branch 'master' into portable
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 652c1316..bd4ba7f5 100644
--- a/smtpd/parser.c
+++ b/smtpd/parser.c
@@ -167,7 +167,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);
}
}
@@ -241,7 +241,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);
@@ -253,7 +253,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");