mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 13:44:23 +08:00
Use a signed variable for length
This commit is contained in:
parent
28cfb82c67
commit
3655b879fe
@ -160,8 +160,8 @@ static int write_key(const char *pathname, const char *key, const char *value, i
|
||||
{
|
||||
struct stat st;
|
||||
char *map, *off, *end, *str;
|
||||
off_t size, pos; size_t base, len;
|
||||
int fd, err = 0;
|
||||
off_t size, pos; size_t base;
|
||||
int fd, len, err = 0;
|
||||
|
||||
fd = open(pathname, O_RDWR);
|
||||
if (fd < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user