mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 21:26:16 +00:00
Core: remove variable name conflict
Having a char parameter with the same name as a global char * variable is confusing. Found via LGTM.com Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2d26300402
commit
a31a9d0911
1 changed files with 2 additions and 2 deletions
|
@ -32,12 +32,12 @@ static unsigned long four_bytes_to_long(unsigned char x, unsigned char y, unsign
|
|||
return ((long)x << 24) + ((long)y << 16) + ((long)z << 8) + (long)t;
|
||||
}
|
||||
|
||||
static unsigned char *byte_to_bits(unsigned char byte)
|
||||
static unsigned char *byte_to_bits(unsigned char byte_value)
|
||||
{
|
||||
unsigned char i, *bits = (unsigned char *)malloc(8);
|
||||
|
||||
for (i = 0; i < 8; i++)
|
||||
bits[i] = byte & (1 << i);
|
||||
bits[i] = byte_value & (1 << i);
|
||||
return bits;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue