Use a signed variable for length

This commit is contained in:
Marcel Holtmann 2008-12-23 03:53:31 +01:00
parent 28cfb82c67
commit 3655b879fe

View File

@ -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)