mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Remove useless casts.
These casts are either completely useless (casting T to T) or implicit (x = y).
This commit is contained in:
parent
77db27331e
commit
579bdc126f
|
@ -128,7 +128,7 @@ void vc_kill(VCSession *vc)
|
|||
|
||||
void *p;
|
||||
|
||||
while (rb_read(vc->vbuf_raw, (void **)&p)) {
|
||||
while (rb_read(vc->vbuf_raw, &p)) {
|
||||
free(p);
|
||||
}
|
||||
|
||||
|
|
|
@ -891,7 +891,7 @@ Assoc *new_Assoc(Logger *log, size_t bits, size_t entries, const uint8_t *public
|
|||
if (entries_test != entries) {
|
||||
|
||||
LOGGER_DEBUG(assoc->log, "trimmed %i to %i.\n", (int)entries, (int)entries_test);
|
||||
entries = (size_t)entries_test;
|
||||
entries = entries_test;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ int create_data_request(uint8_t *packet, uint16_t max_packet_length, const uint8
|
|||
return -1;
|
||||
}
|
||||
|
||||
if ((unsigned int)DATA_REQUEST_MIN_SIZE + length > ONION_MAX_DATA_SIZE) {
|
||||
if (DATA_REQUEST_MIN_SIZE + length > ONION_MAX_DATA_SIZE) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user