diff options
author | 2019-03-17 11:43:06 -0700 | |
---|---|---|
committer | 2019-04-04 15:07:00 -0700 | |
commit | 072bf673038a8633c21f01debd7aadfcbe1fde24 (patch) | |
tree | 319a5001372a189731a0e2d7b5499f376cfc0f97 /core | |
parent | 421e093afd907fe7cdcacdf6ed78c628e0f571d6 (diff) | |
download | subsurface-072bf673038a8633c21f01debd7aadfcbe1fde24.tar.gz |
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>
Diffstat (limited to 'core')
-rw-r--r-- | core/datatrak.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/datatrak.c b/core/datatrak.c index 1c6cd8bb1..81dbadfd5 100644 --- a/core/datatrak.c +++ b/core/datatrak.c @@ -31,12 +31,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; } |