mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix a huge pile of -Wshadow warnings.
These appeared on some of the Jenkins platforms. Apparently some GCCs care when you shadow globals, and some don't.
This commit is contained in:
@@ -115,16 +115,16 @@ static int32_t num_srv_agreements_from_vote;
|
||||
STATIC sr_srv_t *
|
||||
srv_dup(const sr_srv_t *orig)
|
||||
{
|
||||
sr_srv_t *dup = NULL;
|
||||
sr_srv_t *duplicate = NULL;
|
||||
|
||||
if (!orig) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
dup = tor_malloc_zero(sizeof(sr_srv_t));
|
||||
dup->num_reveals = orig->num_reveals;
|
||||
memcpy(dup->value, orig->value, sizeof(dup->value));
|
||||
return dup;
|
||||
duplicate = tor_malloc_zero(sizeof(sr_srv_t));
|
||||
duplicate->num_reveals = orig->num_reveals;
|
||||
memcpy(duplicate->value, orig->value, sizeof(duplicate->value));
|
||||
return duplicate;
|
||||
}
|
||||
|
||||
/* Allocate a new commit object and initializing it with <b>rsa_identity</b>
|
||||
|
||||
Reference in New Issue
Block a user