add missing return statements

Functions are supposed to return a void* but did not return anything.
Return NULL for now.
This commit is contained in:
Lennart Braun 2018-09-16 00:32:50 +03:00
parent aad023de7b
commit 36d88beb4e
3 changed files with 4 additions and 0 deletions

View File

@ -155,6 +155,7 @@ void *gen_cuckoo_entries(void *ctx_void) {
for(i = ctx->startpos; i < ctx->endpos; i++, eleptr+=inbytelen) {
gen_cuckoo_entry(eleptr, ctx->cuckoo_entries + i, hs, i);
}
return NULL;
}

View File

@ -112,6 +112,7 @@ void *gen_entries(void *ctx_tmp) {
}
free(tmpbuf);
free(address);
return NULL;
}
inline void insert_element(sht_ctx* table, uint8_t* element, uint32_t* address, uint8_t* tmpbuf, hs_t* hs) {

View File

@ -587,6 +587,7 @@ void *otpsi_query_hash_table(void* ctx_tmp) {//GHashTable *map, uint8_t* element
free(matches);
//return size_intersect;
return NULL;
}
//TODO if this works correctly, combine with other find intersection methods and outsource to hashing_util.h
@ -717,6 +718,7 @@ void print_bin_content(uint8_t* hash_table, uint32_t nbins, uint32_t elebytelen,
void *receive_masks(void *ctx_tmp) {
mask_rcv_ctx* ctx = (mask_rcv_ctx*) ctx_tmp;
ctx->sock->Receive(ctx->rcv_buf, ctx->maskbytelen * ctx->nmasks);
return NULL;
}
uint32_t get_stash_size(uint32_t neles) {