diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-10-14 17:10:59 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-10-14 17:11:41 +0200 |
commit | 6de42cd323979d44e35851879dee745b5f99bdc4 (patch) | |
tree | 7f9cad6a58097cfa5be5e7ec8e28870491fb048a /src | |
parent | f8dc376c77444d36aad3e99cac234d9a8b5d4031 (diff) | |
download | strongswan-6de42cd323979d44e35851879dee745b5f99bdc4.tar.bz2 strongswan-6de42cd323979d44e35851879dee745b5f99bdc4.tar.xz |
swid-inventory: Remove unused variable end_of_tag
Diffstat (limited to 'src')
-rw-r--r-- | src/libimcv/swid/swid_inventory.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libimcv/swid/swid_inventory.c b/src/libimcv/swid/swid_inventory.c index a9f081efa..a49286954 100644 --- a/src/libimcv/swid/swid_inventory.c +++ b/src/libimcv/swid/swid_inventory.c @@ -60,28 +60,25 @@ static status_t read_swid_tags(private_swid_inventory_t *this, FILE *file) swid_tag_t *tag; bio_writer_t *writer; chunk_t tag_encoding, tag_file_path = chunk_empty; - bool more_tags = TRUE, last_newline, end_of_tag; + bool more_tags = TRUE, last_newline; char line[8192]; size_t len; while (more_tags) { last_newline = TRUE; - end_of_tag = FALSE; writer = bio_writer_create(512); - do + while (TRUE) { if (!fgets(line, sizeof(line), file)) { more_tags = FALSE; - end_of_tag = TRUE; break; } len = strlen(line); if (last_newline && line[0] == '\n') { - end_of_tag = TRUE; break; } else @@ -90,7 +87,6 @@ static status_t read_swid_tags(private_swid_inventory_t *this, FILE *file) writer->write_data(writer, chunk_create(line, len)); } } - while (!end_of_tag); tag_encoding = writer->get_buf(writer); |