aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-07-14 23:40:14 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-07-14 23:40:14 +0200
commitfcc3f9e19c0413eeacbf8c3392b200eff2969810 (patch)
treeac80de98ecb120ccc406d634e7f0f9c0a1016540
parent246bd926488b15fcf9867c2a9372a8c173567ffe (diff)
downloadliberty-fcc3f9e19c0413eeacbf8c3392b200eff2969810.tar.gz
liberty-fcc3f9e19c0413eeacbf8c3392b200eff2969810.tar.xz
liberty-fcc3f9e19c0413eeacbf8c3392b200eff2969810.zip
Get rid of siphash.h as we don't use it
-rw-r--r--siphash.c4
-rw-r--r--siphash.h10
2 files changed, 1 insertions, 13 deletions
diff --git a/siphash.c b/siphash.c
index 7a5c8d4..d85fd4b 100644
--- a/siphash.c
+++ b/siphash.c
@@ -7,8 +7,6 @@
// You should have received a copy of the CC0 Public Domain Dedication along
// with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
-#include "siphash.h"
-
inline static uint64_t
u8to64_le (const unsigned char *p)
{
@@ -23,7 +21,7 @@ u8to64_le (const unsigned char *p)
(uint64_t) p[7] << 56 ;
}
-uint64_t
+static uint64_t
siphash (const unsigned char key[16], const unsigned char *m, size_t len)
{
uint64_t v0, v1, v2, v3;
diff --git a/siphash.h b/siphash.h
deleted file mode 100644
index dca7c42..0000000
--- a/siphash.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef SIPHASH_H
-#define SIPHASH_H
-
-#include <stdint.h>
-#include <stdlib.h>
-
-uint64_t siphash (const unsigned char key[16],
- const unsigned char *m, size_t len);
-
-#endif // SIPHASH_H