aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-04-14 17:30:07 +0200
committerTobias Brunner <tobias@strongswan.org>2011-04-14 18:11:46 +0200
commit33c9e8b28d791746378c5b1a79b0067e289ea6db (patch)
treea07f22af4063235e9a80d795702208233b38bd8d
parent8e4da8f2e8d9c1f316c21bc61aeef49b1329135a (diff)
downloadstrongswan-33c9e8b28d791746378c5b1a79b0067e289ea6db.tar.bz2
strongswan-33c9e8b28d791746378c5b1a79b0067e289ea6db.tar.xz
pluto: Use %zu to print values of type size_t.
-rw-r--r--src/pluto/alg_info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pluto/alg_info.c b/src/pluto/alg_info.c
index d06e09007..fe27c10b2 100644
--- a/src/pluto/alg_info.c
+++ b/src/pluto/alg_info.c
@@ -539,7 +539,7 @@ alg_info_snprint(char *buf, int buflen, struct alg_info *alg_info)
buflen -= np;
if (esp_info->esp_ealg_keylen)
{
- np = snprintf(ptr, buflen, "_%u", esp_info->esp_ealg_keylen);
+ np = snprintf(ptr, buflen, "_%zu", esp_info->esp_ealg_keylen);
ptr += np;
buflen -= np;
}
@@ -571,7 +571,7 @@ alg_info_snprint(char *buf, int buflen, struct alg_info *alg_info)
buflen -= np;
if (ike_info->ike_eklen)
{
- np = snprintf(ptr, buflen, "_%u", ike_info->ike_eklen);
+ np = snprintf(ptr, buflen, "_%zu", ike_info->ike_eklen);
ptr += np;
buflen -= np;
}