diff options
author | Rahul Chaudhry <rahulchaudhry@google.com> | 2016-10-12 12:19:48 -0700 |
---|---|---|
committer | Sven Vermeulen <swift@gentoo.org> | 2016-10-24 18:00:46 +0200 |
commit | fdf49cd4990b345a34e022dccd818a550754e8f9 (patch) | |
tree | bed81db83e49626c5b72831b72baa2e141c907cc /support | |
parent | Update specfile (diff) | |
download | hardened-refpolicy-fdf49cd4990b345a34e022dccd818a550754e8f9.tar.gz hardened-refpolicy-fdf49cd4990b345a34e022dccd818a550754e8f9.tar.bz2 hardened-refpolicy-fdf49cd4990b345a34e022dccd818a550754e8f9.zip |
fc_sort: cleanup warnings caught by clang tidy / static analyzer.
Value stored to 'i' is never read.
Variable 'j' is never used.
Diffstat (limited to 'support')
-rw-r--r-- | support/fc_sort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/fc_sort.c b/support/fc_sort.c index f4d2cd0b..5561288a 100644 --- a/support/fc_sort.c +++ b/support/fc_sort.c @@ -315,7 +315,7 @@ int main(int argc, char *argv[]) { int lines; size_t start, finish, regex_len, context_len; - size_t line_len, buf_len, i, j; + size_t line_len, buf_len, i; char *input_name, *output_name, *line_buf; file_context_node_t *temp; @@ -336,7 +336,7 @@ int main(int argc, char *argv[]) input_name = argv[1]; output_name = (argc >= 3) ? argv[2] : NULL; - i = j = lines = 0; + lines = 0; /* Open the input file. */ if (!(in_file = fopen(input_name, "r"))) { |