Remove redundant casts to same type

This commit is contained in:
practicalswift
2018-02-21 11:29:57 +01:00
committed by Christian Decker
parent 369d3ab46e
commit 3dbace3421
8 changed files with 19 additions and 19 deletions

View File

@@ -57,21 +57,21 @@ static void json_dev_ping(struct command *cmd,
* ready to forward! */
if (!json_tok_number(buffer, lentok, &len)) {
command_fail(cmd, "'%.*s' is not a valid number",
(int)(lentok->end - lentok->start),
lentok->end - lentok->start,
buffer + lentok->start);
return;
}
if (!json_tok_number(buffer, pongbytestok, &pongbytes)) {
command_fail(cmd, "'%.*s' is not a valid number",
(int)(pongbytestok->end - pongbytestok->start),
pongbytestok->end - pongbytestok->start,
buffer + pongbytestok->start);
return;
}
if (!json_tok_pubkey(buffer, idtok, &id)) {
command_fail(cmd, "'%.*s' is not a valid pubkey",
(int)(idtok->end - idtok->start),
idtok->end - idtok->start,
buffer + idtok->start);
return;
}