[ovs-dev] [PATCH 06/15] ovsdb: Remove write-only variable from parse_body() in log.c.
Ben Pfaff
blp at nicira.com
Wed Feb 10 11:30:29 PST 2010
Found by Clang (http://clang-analyzer.llvm.org/).
---
ovsdb/log.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/ovsdb/log.c b/ovsdb/log.c
index c8dac10..837f215 100644
--- a/ovsdb/log.c
+++ b/ovsdb/log.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2009 Nicira Networks
+/* Copyright (c) 2009, 2010 Nicira Networks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -183,14 +183,12 @@ static struct ovsdb_error *
parse_body(struct ovsdb_log *file, off_t offset, unsigned long int length,
uint8_t sha1[SHA1_DIGEST_SIZE], struct json **jsonp)
{
- unsigned long int bytes_left;
struct json_parser *parser;
struct sha1_ctx ctx;
sha1_init(&ctx);
parser = json_parser_create(JSPF_TRAILER);
- bytes_left = length;
while (length > 0) {
char input[BUFSIZ];
int chunk;
--
1.6.6.1
More information about the dev
mailing list