summaryrefslogtreecommitdiffstats
path: root/testing/siege/stdint.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-11-12 12:29:52 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-11-12 12:29:52 +0000
commitd4950612adf494a987671973752ca7a3844c6b8f (patch)
tree761e0d3e49b57518f57e874e9f00b3be497013a9 /testing/siege/stdint.patch
parente3290ffb59dea98d5618211ef0b0c208b65030bf (diff)
downloadaports-d4950612adf494a987671973752ca7a3844c6b8f.tar.bz2
aports-d4950612adf494a987671973752ca7a3844c6b8f.tar.xz
testing/siege: upgrade to 3.0.8
Diffstat (limited to 'testing/siege/stdint.patch')
-rw-r--r--testing/siege/stdint.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/siege/stdint.patch b/testing/siege/stdint.patch
new file mode 100644
index 000000000..41ccad90b
--- /dev/null
+++ b/testing/siege/stdint.patch
@@ -0,0 +1,28 @@
+--- ./src/hash.c.orig
++++ ./src/hash.c
+@@ -26,6 +26,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include <hash.h>
+ #include <joedog/joedog.h>
+ #include <joedog/defs.h>
+@@ -54,7 +55,7 @@
+ private BOOLEAN __lookup(HASH this, char *key);
+ private void __resize(HASH this);
+ private unsigned int __genkey(int size, char *str);
+-private u_int32_t fnv_32_buf(void *buf, size_t len, u_int32_t hval);
++private uint32_t fnv_32_buf(void *buf, size_t len, uint32_t hval);
+
+ /**
+ * allocs size and space for the
+@@ -265,7 +266,7 @@
+ * FNV-1a hash each octet in the buffer
+ */
+ while (bp < be) {
+- hval ^= (u_int32_t)*bp++;
++ hval ^= (uint32_t)*bp++;
+ hval += (hval<<1) + (hval<<4) + (hval<<7) + (hval<<8) + (hval<<24);
+ }
+ return hval;