Skip to content

Commit

Permalink
omit local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarning committed Feb 9, 2020
1 parent 0441cc2 commit 902d008
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ext-cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 902d008

Please sign in to comment.