mirror of
https://github.com/yrutschle/sslh.git
synced 2026-10-22 02:01:20 +03:00
hashtest: fix build so the suite actually runs
htest.c was missing the "typedef struct hash hash" that hash.h requires, and the Makefile linked the top-level ../hash.o which is built without -DHASH_DEBUG, leaving hash_dump/hash_item_print undefined. Build a local hash.o with the flag instead. All 16 tests now compile and pass.
This commit is contained in:
1 parent
bb89714216
commit
39d164f5a8
2 files changed
+5
-1
No files matched your search
+4
-1
@@ -1,6 +1,9 @@
|
||||
|
||||
CFLAGS=-DHASH_DEBUG -O2 -Wall
|
||||
OBJ=../hash.o ../gap.o htest.o
|
||||
OBJ=hash.o ../gap.o htest.o
|
||||
|
||||
hash.o: ../hash.c
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
htest: $(OBJ)
|
||||
$(CC) -o htest $(OBJ)
|
||||
|
||||
@@ -29,6 +29,7 @@ struct hash_item {
|
||||
};
|
||||
|
||||
typedef struct hash_item* hash_item;
|
||||
typedef struct hash hash;
|
||||
|
||||
#include "../hash.h"
|
||||
|
||||
|
||||
Reference in new issue
Block a user