diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2013-10-26 12:28:00 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2013-10-26 12:28:00 +0000 |
commit | 0c5642f535322aedb5da9dfd17e1a3135d89a46f (patch) | |
tree | e90728c67a471658c4cc9164959032dd091b7569 /usr.sbin/smtpd/table_passwd.c | |
parent | adbfcdcd569d8ec6daa5a16b64500858e3bd7364 (diff) |
%i -> %d in format strings
Diffstat (limited to 'usr.sbin/smtpd/table_passwd.c')
-rw-r--r-- | usr.sbin/smtpd/table_passwd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/table_passwd.c b/usr.sbin/smtpd/table_passwd.c index dcc9bb7e3ac..baca7792470 100644 --- a/usr.sbin/smtpd/table_passwd.c +++ b/usr.sbin/smtpd/table_passwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table_passwd.c,v 1.3 2013/10/24 20:07:16 eric Exp $ */ +/* $OpenBSD: table_passwd.c,v 1.4 2013/10/26 12:27:59 eric Exp $ */ /* * Copyright (c) 2013 Gilles Chehade <gilles@poolp.org> @@ -174,7 +174,7 @@ table_passwd_lookup(int service, const char *key, char *dst, size_t sz) } break; case K_USERINFO: - if (snprintf(dst, sz, "%i:%i:%s", + if (snprintf(dst, sz, "%d:%d:%s", pw.pw_uid, pw.pw_gid, pw.pw_dir) > (ssize_t)sz) { log_warnx("warn: table-passwd: result too large"); @@ -182,7 +182,7 @@ table_passwd_lookup(int service, const char *key, char *dst, size_t sz) } break; default: - log_warnx("warn: table-passwd: unknown service %i", + log_warnx("warn: table-passwd: unknown service %d", service); r = -1; } |