summaryrefslogtreecommitdiff
path: root/t/helper/test-sha1-array.c
diff options
context:
space:
mode:
Diffstat (limited to 't/helper/test-sha1-array.c')
-rw-r--r--t/helper/test-sha1-array.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/helper/test-sha1-array.c b/t/helper/test-sha1-array.c
index 60ea1d5f14..f7a53c4ad6 100644
--- a/t/helper/test-sha1-array.c
+++ b/t/helper/test-sha1-array.c
@@ -1,12 +1,13 @@
#include "cache.h"
#include "sha1-array.h"
-static void print_sha1(const unsigned char sha1[20], void *data)
+static int print_sha1(const unsigned char sha1[20], void *data)
{
puts(sha1_to_hex(sha1));
+ return 0;
}
-int main(int argc, char **argv)
+int cmd_main(int argc, const char **argv)
{
struct sha1_array array = SHA1_ARRAY_INIT;
struct strbuf line = STRBUF_INIT;