mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 21:54:33 +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;
|
struct stat st;
|
||||||
char *map, *off, *end, *str;
|
char *map, *off, *end, *str;
|
||||||
off_t size, pos; size_t base, len;
|
off_t size, pos; size_t base;
|
||||||
int fd, err = 0;
|
int fd, len, err = 0;
|
||||||
|
|
||||||
fd = open(pathname, O_RDWR);
|
fd = open(pathname, O_RDWR);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user