summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-23 03:53:31 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-23 03:53:31 +0100
commit3655b879fe4291a058a2f4c8103192ece0cfa411 (patch)
tree56ea52218c601c89cf5909e2e05025b6bbbbc6ce /common
parent28cfb82c67c413cddff779a875cc7a40931b46a5 (diff)
Use a signed variable for length
Diffstat (limited to 'common')
-rw-r--r--common/textfile.c4
1 files changed, 2 insertions, 2 deletions
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)