summaryrefslogtreecommitdiff
path: root/murmurhash.c
diff options
context:
space:
mode:
authorJoseph Werle <joseph.werle@gmail.com>2014-05-05 11:30:00 -0400
committerJoseph Werle <joseph.werle@gmail.com>2014-05-05 11:31:45 -0400
commitcbfbbbb6b0b7a5441aa0414a73f4a2cda00bd957 (patch)
treed76b573b8005aad83df719b9f3afbf683036ef6a /murmurhash.c
parent2d25dad1f814ddbdb1c02a4d648970cb36d8f71e (diff)
Add exec and man
Diffstat (limited to 'murmurhash.c')
-rw-r--r--murmurhash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/murmurhash.c b/murmurhash.c
index 427b3d2..8224eb6 100644
--- a/murmurhash.c
+++ b/murmurhash.c
@@ -7,7 +7,7 @@
#include <stdlib.h>
#include <stdio.h>
-#include <murmurhash.h>
+#include "murmurhash.h"
uint32_t
murmurhash (const char *key, uint32_t len, uint32_t seed) {
@@ -20,8 +20,8 @@ murmurhash (const char *key, uint32_t len, uint32_t seed) {
uint32_t h = 0;
uint32_t k = 0;
uint8_t *d = (uint8_t *) key; // 32 bit extract from `key'
- const uint32_t *chunks = 0;
- const uint8_t *tail = 0; // tail - last 8 bytes
+ const uint32_t *chunks = NULL;
+ const uint8_t *tail = NULL; // tail - last 8 bytes
int i = 0;
int l = len / 4; // chunk length