mirror of
https://github.com/encryptogroup/PSI.git
synced 2024-03-22 13:30:44 +08:00
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:
parent
aad023de7b
commit
36d88beb4e
|
@ -155,6 +155,7 @@ void *gen_cuckoo_entries(void *ctx_void) {
|
||||||
for(i = ctx->startpos; i < ctx->endpos; i++, eleptr+=inbytelen) {
|
for(i = ctx->startpos; i < ctx->endpos; i++, eleptr+=inbytelen) {
|
||||||
gen_cuckoo_entry(eleptr, ctx->cuckoo_entries + i, hs, i);
|
gen_cuckoo_entry(eleptr, ctx->cuckoo_entries + i, hs, i);
|
||||||
}
|
}
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -112,6 +112,7 @@ void *gen_entries(void *ctx_tmp) {
|
||||||
}
|
}
|
||||||
free(tmpbuf);
|
free(tmpbuf);
|
||||||
free(address);
|
free(address);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void insert_element(sht_ctx* table, uint8_t* element, uint32_t* address, uint8_t* tmpbuf, hs_t* hs) {
|
inline void insert_element(sht_ctx* table, uint8_t* element, uint32_t* address, uint8_t* tmpbuf, hs_t* hs) {
|
||||||
|
|
|
@ -587,6 +587,7 @@ void *otpsi_query_hash_table(void* ctx_tmp) {//GHashTable *map, uint8_t* element
|
||||||
|
|
||||||
free(matches);
|
free(matches);
|
||||||
//return size_intersect;
|
//return size_intersect;
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO if this works correctly, combine with other find intersection methods and outsource to hashing_util.h
|
//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) {
|
void *receive_masks(void *ctx_tmp) {
|
||||||
mask_rcv_ctx* ctx = (mask_rcv_ctx*) ctx_tmp;
|
mask_rcv_ctx* ctx = (mask_rcv_ctx*) ctx_tmp;
|
||||||
ctx->sock->Receive(ctx->rcv_buf, ctx->maskbytelen * ctx->nmasks);
|
ctx->sock->Receive(ctx->rcv_buf, ctx->maskbytelen * ctx->nmasks);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t get_stash_size(uint32_t neles) {
|
uint32_t get_stash_size(uint32_t neles) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user