summaryrefslogtreecommitdiffstats
path: root/usr.sbin/smtpd/table_sqlite.c
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2013-10-26 12:27:58 +0000
committereric <eric@openbsd.org>2013-10-26 12:27:58 +0000
commitd7bcae4d6d4d5ecc8bada62c46fe63bb4ddc3d0c (patch)
tree6ce7e58eff257a711554f5d1b8843ce9f99f3886 /usr.sbin/smtpd/table_sqlite.c
parentfix crash when using ProxyCommand caused by previous commit - was calling (diff)
downloadwireguard-openbsd-d7bcae4d6d4d5ecc8bada62c46fe63bb4ddc3d0c.tar.xz
wireguard-openbsd-d7bcae4d6d4d5ecc8bada62c46fe63bb4ddc3d0c.zip
%i -> %d in format strings
Diffstat (limited to 'usr.sbin/smtpd/table_sqlite.c')
-rw-r--r--usr.sbin/smtpd/table_sqlite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/table_sqlite.c b/usr.sbin/smtpd/table_sqlite.c
index 870341ac81d..f2e91f08df8 100644
--- a/usr.sbin/smtpd/table_sqlite.c
+++ b/usr.sbin/smtpd/table_sqlite.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: table_sqlite.c,v 1.7 2013/10/24 20:26:45 eric Exp $ */
+/* $OpenBSD: table_sqlite.c,v 1.8 2013/10/26 12:27:59 eric Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
@@ -450,7 +450,7 @@ table_sqlite_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",
sqlite3_column_int(stmt, 0),
sqlite3_column_int(stmt, 1),
sqlite3_column_text(stmt, 2)) > (ssize_t)sz) {
@@ -469,7 +469,7 @@ table_sqlite_lookup(int service, const char *key, char *dst, size_t sz)
}
break;
default:
- log_warnx("warn: table-sqlite: unknown service %i", service);
+ log_warnx("warn: table-sqlite: unknown service %d", service);
r = -1;
}