summaryrefslogtreecommitdiff
path: root/net/v6eval/files/patch-bin_dhgen_dhgen.cc
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-06-16 02:37:46 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-06-16 02:37:46 +0000
commita14da88b51b0f28b150eb5ac7181d11cbbcb5eb2 (patch)
tree6b4f932f596f778acb5e8a08a1c707e1302b0885 /net/v6eval/files/patch-bin_dhgen_dhgen.cc
parent- Fix configuring ezmlm-idx-7 mailing lists. Only apply the (diff)
- Add patches to fix type mismatch. Bump PORTREVISION becuase some affect
the result binaries. - Fix build on head after byacc 20130304.
Notes
Notes: svn path=/head/; revision=321022
Diffstat (limited to 'net/v6eval/files/patch-bin_dhgen_dhgen.cc')
-rw-r--r--net/v6eval/files/patch-bin_dhgen_dhgen.cc47
1 files changed, 47 insertions, 0 deletions
diff --git a/net/v6eval/files/patch-bin_dhgen_dhgen.cc b/net/v6eval/files/patch-bin_dhgen_dhgen.cc
new file mode 100644
index 000000000000..3e715de32e96
--- /dev/null
+++ b/net/v6eval/files/patch-bin_dhgen_dhgen.cc
@@ -0,0 +1,47 @@
+--- bin/dhgen/dhgen.cc.orig 2013-06-16 10:57:08.000000000 +0900
++++ bin/dhgen/dhgen.cc 2013-06-16 10:59:01.000000000 +0900
+@@ -233,21 +233,21 @@
+ }
+
+ #ifdef TAHI
+- printf("log:DHGen_Results (length:%i)\n",
++ printf("log:DHGen_Results (length:%zu)\n",
+ xflag?
+- BN_num_bytes(pDH->pub_key) +
+- BN_num_bytes(pDH->priv_key):
++ (size_t)(BN_num_bytes(pDH->pub_key) +
++ BN_num_bytes(pDH->priv_key)):
+ strlen(pPubKey) + strlen(pPrivKey));
+ #else // TAHI
+- printf("log:DHGen_Results (length:%i)\n", strlen(pPubKey) + strlen(pPrivKey));
++ printf("log:DHGen_Results (length:%zu)\n", strlen(pPubKey) + strlen(pPrivKey));
+ #endif // TAHI
+ #ifdef TAHI
+- printf("log:| Public_Key (length:%i)\n",
++ printf("log:| Public_Key (length:%zu)\n",
+ xflag?
+- BN_num_bytes(pDH->pub_key):
++ (size_t)BN_num_bytes(pDH->pub_key):
+ strlen(pPubKey));
+ #else // TAHI
+- printf("log:| Public_Key (length:%i)\n", strlen(pPubKey));
++ printf("log:| Public_Key (length:%zu)\n", strlen(pPubKey));
+ #endif // TAHI
+ #ifdef TAHI
+ xflag? xPrintResult(pPubKey): PrintResult(pPubKey);
+@@ -255,12 +255,12 @@
+ PrintResult(pPubKey);
+ #endif // TAHI
+ #ifdef TAHI
+- printf("log:| Private_Key (length:%i)\n",
++ printf("log:| Private_Key (length:%zu)\n",
+ xflag?
+- BN_num_bytes(pDH->priv_key):
++ (size_t)BN_num_bytes(pDH->priv_key):
+ strlen(pPrivKey));
+ #else // TAHI
+- printf("log:| Private_Key (length:%i)\n", strlen(pPrivKey));
++ printf("log:| Private_Key (length:%zu)\n", strlen(pPrivKey));
+ #endif // TAHI
+ #ifdef TAHI
+ xflag? xPrintResult(pPrivKey): PrintResult(pPrivKey);