diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-03-10 21:03:10 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2009-03-10 21:03:10 +0000 |
commit | 3628265911a2c34d0f3bfbf87171b377a6af1102 (patch) | |
tree | 7d9c78b2723104e283c6f26d629cbd856c32234b /package/ipsec-tools/ipsec-tools-0.6.7-printf-format-string.patch | |
parent | e8e6bc348b8e4df4509a6d45f4d59042ffe9e7e0 (diff) | |
download | buildroot-novena-3628265911a2c34d0f3bfbf87171b377a6af1102.tar.gz buildroot-novena-3628265911a2c34d0f3bfbf87171b377a6af1102.zip |
ipsec-tools: fix printf format string for size_t (on 64bit)
Use %zu instead of %d for printing out size_t variables. Fixes a build issue
on 64bit as ipsec-tools uses -Werror.
Diffstat (limited to 'package/ipsec-tools/ipsec-tools-0.6.7-printf-format-string.patch')
-rw-r--r-- | package/ipsec-tools/ipsec-tools-0.6.7-printf-format-string.patch | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/package/ipsec-tools/ipsec-tools-0.6.7-printf-format-string.patch b/package/ipsec-tools/ipsec-tools-0.6.7-printf-format-string.patch new file mode 100644 index 000000000..5851737ca --- /dev/null +++ b/package/ipsec-tools/ipsec-tools-0.6.7-printf-format-string.patch @@ -0,0 +1,64 @@ +[patch]: ipsec-tools: fix printf format string for size_t + +Use %zu instead of %d for printing out size_t variables. Fixes a build issue +on 64bit as ipsec-tools uses -Werror. + +Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> +--- + src/racoon/algorithm.c | 6 +++--- + src/racoon/oakley.c | 4 ++-- + 2 files changed, 5 insertions(+), 5 deletions(-) + +Index: ipsec-tools-0.6.7/src/racoon/oakley.c +=================================================================== +--- ipsec-tools-0.6.7.orig/src/racoon/oakley.c ++++ ipsec-tools-0.6.7/src/racoon/oakley.c +@@ -252,7 +252,7 @@ + + #ifdef ENABLE_STATS + gettimeofday(&end, NULL); +- syslog(LOG_NOTICE, "%s(%s%d): %8.6f", __func__, ++ syslog(LOG_NOTICE, "%s(%s%zu): %8.6f", __func__, + s_attr_isakmp_group(dh->type), dh->prime->l << 3, + timedelta(&start, &end)); + #endif +@@ -299,7 +299,7 @@ + + #ifdef ENABLE_STATS + gettimeofday(&end, NULL); +- syslog(LOG_NOTICE, "%s(%s%d): %8.6f", __func__, ++ syslog(LOG_NOTICE, "%s(%s%zu): %8.6f", __func__, + s_attr_isakmp_group(dh->type), dh->prime->l << 3, + timedelta(&start, &end)); + #endif +Index: ipsec-tools-0.6.7/src/racoon/algorithm.c +=================================================================== +--- ipsec-tools-0.6.7.orig/src/racoon/algorithm.c ++++ ipsec-tools-0.6.7/src/racoon/algorithm.c +@@ -394,7 +394,7 @@ + + #ifdef ENABLE_STATS + gettimeofday(&end, NULL); +- syslog(LOG_NOTICE, "%s(%s size=%d): %8.6f", __func__, ++ syslog(LOG_NOTICE, "%s(%s size=%zu): %8.6f", __func__, + f->name, buf->l, timedelta(&start, &end)); + #endif + +@@ -506,7 +506,7 @@ + + #ifdef ENABLE_STATS + gettimeofday(&end, NULL); +- syslog(LOG_NOTICE, "%s(%s klen=%d size=%d): %8.6f", __func__, ++ syslog(LOG_NOTICE, "%s(%s klen=%zu size=%zu): %8.6f", __func__, + f->name, key->l << 3, buf->l, timedelta(&start, &end)); + #endif + return res; +@@ -535,7 +535,7 @@ + + #ifdef ENABLE_STATS + gettimeofday(&end, NULL); +- syslog(LOG_NOTICE, "%s(%s klen=%d size=%d): %8.6f", __func__, ++ syslog(LOG_NOTICE, "%s(%s klen=%zu size=%zu): %8.6f", __func__, + f->name, key->l << 3, buf->l, timedelta(&start, &end)); + #endif + return res; |