aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorKyle Altendorf <sda@fstab.net>2019-09-21 16:12:31 -0400
committerKyle Altendorf <sda@fstab.net>2019-09-21 16:12:31 -0400
commit84ec6d2c747843c114ee11e6b5b04cfa3cfbb69c (patch)
treeab877193da84b7a00dc6d363dccbbcb09065372d /test.c
parentMerge pull request #21 from altendky/full_siphash_format_specifiers (diff)
downloadsiphash-84ec6d2c747843c114ee11e6b5b04cfa3cfbb69c.tar.gz
siphash-84ec6d2c747843c114ee11e6b5b04cfa3cfbb69c.tar.xz
Separate test function and main()
This allows for inclusion of the test function/file in a program with an existing main(). This is an isolated piece of #19.
Diffstat (limited to '')
-rw-r--r--test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.c b/test.c
index b6547a5..8120562 100644
--- a/test.c
+++ b/test.c
@@ -43,7 +43,7 @@ const char *labels[4] = {
size_t lengths[4] = {8, 16, 4, 8};
-int main() {
+int siphash_test() {
uint8_t in[64], out[16], k[16];
int i;
#ifndef GETVECTORS