From 902d0086ffabd34b608b29c16ce098dd2a95cc64 Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Sun, 9 Feb 2020 22:34:54 +0100 Subject: [PATCH] omit local variable --- src/ext-cmd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ext-cmd.c b/src/ext-cmd.c index 8152a4ac..1504ad83 100644 --- a/src/ext-cmd.c +++ b/src/ext-cmd.c @@ -136,7 +136,6 @@ static void cmd_exec(FILE *fp, const char request[], int allow_debug) int count; int port; char d; // dummy marker - int rc = 0; if (sscanf(request, " ping%*[ ]%255[^ \n\t] %c", hostname, &d) == 1) { if (gconf->af == AF_UNSPEC) { @@ -202,9 +201,7 @@ static void cmd_exec(FILE *fp, const char request[], int allow_debug) } else if (match(request, " list%*[ ]constants %n")) { kad_debug_constants(fp); } else if (match(request, " list%*[ ]nodes %n")) { - rc = kad_export_nodes(fp); - - if (rc == 0) { + if (kad_export_nodes(fp) == 0) { fprintf(fp, "No good nodes found.\n"); } #ifdef FWD