From 3655b879fe4291a058a2f4c8103192ece0cfa411 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 23 Dec 2008 03:53:31 +0100 Subject: Use a signed variable for length --- common/textfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/textfile.c') diff --git a/common/textfile.c b/common/textfile.c index af895e58..a756747a 100644 --- a/common/textfile.c +++ b/common/textfile.c @@ -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) -- cgit