Remove useless casts.

These casts are either completely useless (casting T to T) or implicit (x = y).
This commit is contained in:
iphydf 2016-09-01 18:49:49 +01:00
parent 77db27331e
commit 579bdc126f
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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;
}
}

View File

@ -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;
}