]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: remove unsed counter (#4349)
authorThomas H. P. Andersen <phomes@gmail.com>
Tue, 11 Oct 2016 17:51:03 +0000 (19:51 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 11 Oct 2016 17:51:03 +0000 (13:51 -0400)
It was introduced but never used in 45ec7efb.

src/resolve/resolve-tool.c

index 8aa79049b64f0ade88fa7af3c5643eb96825dd47..9d4d04220cb73075176edb2b9d6c97759e067c0f 100644 (file)
@@ -780,7 +780,6 @@ static int resolve_service(sd_bus *bus, const char *name, const char *type, cons
         if (r < 0)
                 return bus_log_parse_error(r);
 
-        c = 0;
         while ((r = sd_bus_message_read_array(reply, 'y', (const void**) &p, &sz)) > 0) {
                 _cleanup_free_ char *escaped = NULL;
 
@@ -789,7 +788,6 @@ static int resolve_service(sd_bus *bus, const char *name, const char *type, cons
                         return log_oom();
 
                 printf("%*s%s\n", (int) indent, "", escaped);
-                c++;
         }
         if (r < 0)
                 return bus_log_parse_error(r);