Skip to content

Commit

Permalink
Remove lint void clutter.
Browse files Browse the repository at this point in the history
  • Loading branch information
jvirkki committed Oct 18, 2016
1 parent 21b2139 commit f6d2941
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ $(BUILD)/murmurhash2.o: murmur2/MurmurHash2.c murmur2/murmurhash2.h
clean:
rm -rf $(BUILD)

lint:
lint -x -errfmt=simple $(INC) $(LIB) bloom.c

test: $(BUILD)/test-libbloom $(BUILD)/test-basic
$(BUILD)/test-basic
$(BUILD)/test-libbloom
Expand Down
16 changes: 8 additions & 8 deletions bloom.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static int bloom_check_add(struct bloom * bloom,
const void * buffer, int len, int add)
{
if (bloom->ready == 0) {
(void)printf("bloom at %p not initialized!\n", (void *)bloom);
printf("bloom at %p not initialized!\n", (void *)bloom);
return -1;
}

Expand Down Expand Up @@ -131,13 +131,13 @@ int bloom_add(struct bloom * bloom, const void * buffer, int len)

void bloom_print(struct bloom * bloom)
{
(void)printf("bloom at %p\n", (void *)bloom);
(void)printf(" ->entries = %d\n", bloom->entries);
(void)printf(" ->error = %f\n", bloom->error);
(void)printf(" ->bits = %d\n", bloom->bits);
(void)printf(" ->bits per elem = %f\n", bloom->bpe);
(void)printf(" ->bytes = %d\n", bloom->bytes);
(void)printf(" ->hash functions = %d\n", bloom->hashes);
printf("bloom at %p\n", (void *)bloom);
printf(" ->entries = %d\n", bloom->entries);
printf(" ->error = %f\n", bloom->error);
printf(" ->bits = %d\n", bloom->bits);
printf(" ->bits per elem = %f\n", bloom->bpe);
printf(" ->bytes = %d\n", bloom->bytes);
printf(" ->hash functions = %d\n", bloom->hashes);
}


Expand Down

0 comments on commit f6d2941

Please sign in to comment.