Browse Source

Add the missing space between "if" and "("

Changelog-None
travis-debug
Vasil Dimov 5 years ago
committed by Christian Decker
parent
commit
2ea91f834c
  1. 2
      channeld/channeld.c
  2. 2
      common/test/run-param.c
  3. 2
      common/wallet_tx.c
  4. 2
      connectd/tor_autoservice.c
  5. 2
      lightningd/bitcoind.c
  6. 4
      lightningd/channel_control.c
  7. 2
      lightningd/opening_control.c
  8. 2
      lightningd/options.c
  9. 2
      lightningd/peer_htlcs.c
  10. 2
      plugins/libplugin.c
  11. 2
      wallet/test/run-wallet.c
  12. 6
      wallet/wallet.c
  13. 2
      wallet/walletrpc.c

2
channeld/channeld.c

@ -3036,7 +3036,7 @@ static void init_channel(struct peer *peer)
status_debug("option_static_remotekey = %u", option_static_remotekey); status_debug("option_static_remotekey = %u", option_static_remotekey);
if(remote_ann_node_sig && remote_ann_bitcoin_sig) { if (remote_ann_node_sig && remote_ann_bitcoin_sig) {
peer->announcement_node_sigs[REMOTE] = *remote_ann_node_sig; peer->announcement_node_sigs[REMOTE] = *remote_ann_node_sig;
peer->announcement_bitcoin_sigs[REMOTE] = *remote_ann_bitcoin_sig; peer->announcement_bitcoin_sigs[REMOTE] = *remote_ann_bitcoin_sig;
peer->have_sigs[REMOTE] = true; peer->have_sigs[REMOTE] = true;

2
common/test/run-param.c

@ -554,7 +554,7 @@ static void test_invoice(struct command *cmd,
const jsmntok_t *preimagetok; const jsmntok_t *preimagetok;
assert(cmd->mode == CMD_USAGE); assert(cmd->mode == CMD_USAGE);
if(!param(cmd, buffer, params, if (!param(cmd, buffer, params,
p_req("msatoshi", param_u64, &msatoshi_val), p_req("msatoshi", param_u64, &msatoshi_val),
p_req("label", param_label, &label_val), p_req("label", param_label, &label_val),
p_req("description", param_escaped_string, &desc_val), p_req("description", param_escaped_string, &desc_val),

2
common/wallet_tx.c

@ -71,7 +71,7 @@ struct command_result *param_utxos(struct command *cmd,
"Could not get a txid out of \"%s\"", "Could not get a txid out of \"%s\"",
json_strdup(tmpctx, buffer, &txid_tok)); json_strdup(tmpctx, buffer, &txid_tok));
} }
if(!json_to_number(buffer, (const jsmntok_t*)&outnum_tok, outnum)) if (!json_to_number(buffer, (const jsmntok_t*)&outnum_tok, outnum))
return command_fail(cmd, JSONRPC2_INVALID_PARAMS, return command_fail(cmd, JSONRPC2_INVALID_PARAMS,
"Could not get a vout out of \"%s\"", "Could not get a vout out of \"%s\"",
json_strdup(tmpctx, buffer, &outnum_tok)); json_strdup(tmpctx, buffer, &outnum_tok));

2
connectd/tor_autoservice.c

@ -111,7 +111,7 @@ static struct wireaddr *make_onion(const tal_t *ctx,
continue; continue;
if (use_v3_autotor) if (use_v3_autotor)
if(strstr(line, "\"0.0") || if (strstr(line, "\"0.0") ||
strstr(line, "\"0.1") || strstr(line, "\"0.1") ||
strstr(line, "\"0.2") || strstr(line, "\"0.2") ||
strstr(line, "\"0.3")) { strstr(line, "\"0.3")) {

2
lightningd/bitcoind.c

@ -1051,7 +1051,7 @@ static char* check_blockchain_from_bitcoincli(const tal_t *ctx,
args_string(tmpctx, cmd), args_string(tmpctx, cmd),
(int)output_bytes, output); (int)output_bytes, output);
if(!json_tok_streq(output, valuetok, if (!json_tok_streq(output, valuetok,
chainparams->bip70_name)) chainparams->bip70_name))
return tal_fmt(ctx, "Error blockchain for bitcoin-cli?" return tal_fmt(ctx, "Error blockchain for bitcoin-cli?"
" Should be: %s", " Should be: %s",

4
lightningd/channel_control.c

@ -414,7 +414,7 @@ void peer_start_channeld(struct channel *channel,
if (ld->config.ignore_fee_limits) if (ld->config.ignore_fee_limits)
log_debug(channel->log, "Ignoring fee limits!"); log_debug(channel->log, "Ignoring fee limits!");
if(!wallet_remote_ann_sigs_load(tmpctx, channel->peer->ld->wallet, channel->dbid, if (!wallet_remote_ann_sigs_load(tmpctx, channel->peer->ld->wallet, channel->dbid,
&remote_ann_node_sig, &remote_ann_bitcoin_sig)) { &remote_ann_node_sig, &remote_ann_bitcoin_sig)) {
channel_internal_error(channel, channel_internal_error(channel,
"Could not load remote announcement signatures"); "Could not load remote announcement signatures");
@ -714,7 +714,7 @@ struct command_result *cancel_channel_before_broadcast(struct command *cmd,
/* Check if we broadcast the transaction. (We store the transaction type into DB /* Check if we broadcast the transaction. (We store the transaction type into DB
* before broadcast). */ * before broadcast). */
enum wallet_tx_type type; enum wallet_tx_type type;
if(wallet_transaction_type(cmd->ld->wallet, if (wallet_transaction_type(cmd->ld->wallet,
&cancel_channel->funding_txid, &cancel_channel->funding_txid,
&type)) &type))
return command_fail(cmd, LIGHTNINGD, return command_fail(cmd, LIGHTNINGD,

2
lightningd/opening_control.c

@ -1075,7 +1075,7 @@ static struct command_result *json_fund_channel_cancel(struct command *cmd,
} }
if (peer->uncommitted_channel) { if (peer->uncommitted_channel) {
if(!peer->uncommitted_channel->fc || !peer->uncommitted_channel->fc->inflight) if (!peer->uncommitted_channel->fc || !peer->uncommitted_channel->fc->inflight)
return command_fail(cmd, LIGHTNINGD, "No channel funding in progress."); return command_fail(cmd, LIGHTNINGD, "No channel funding in progress.");
/* Make sure this gets notified if we succeed or cancel */ /* Make sure this gets notified if we succeed or cancel */

2
lightningd/options.c

@ -344,7 +344,7 @@ static char *opt_set_hsm_password(struct lightningd *ld)
fflush(stdout); fflush(stdout);
if (getline(&passwd, &passwd_size, stdin) < 0) if (getline(&passwd, &passwd_size, stdin) < 0)
return "Could not read password from stdin."; return "Could not read password from stdin.";
if(passwd[strlen(passwd) - 1] == '\n') if (passwd[strlen(passwd) - 1] == '\n')
passwd[strlen(passwd) - 1] = '\0'; passwd[strlen(passwd) - 1] = '\0';
if (tcsetattr(fileno(stdin), TCSAFLUSH, &current_term) != 0) if (tcsetattr(fileno(stdin), TCSAFLUSH, &current_term) != 0)
return "Could not restore terminal options."; return "Could not restore terminal options.";

2
lightningd/peer_htlcs.c

@ -2197,7 +2197,7 @@ void json_format_forwarding_object(struct json_stream *response,
} }
json_add_string(response, "status", forward_status_name(cur->status)); json_add_string(response, "status", forward_status_name(cur->status));
if(cur->failcode != 0) { if (cur->failcode != 0) {
json_add_num(response, "failcode", cur->failcode); json_add_num(response, "failcode", cur->failcode);
json_add_string(response, "failreason", json_add_string(response, "failreason",
onion_type_name(cur->failcode)); onion_type_name(cur->failcode));

2
plugins/libplugin.c

@ -162,7 +162,7 @@ static struct command *read_json_request(const tal_t *ctx,
id = json_get_member(membuf_elems(&conn->mb), toks, "id"); id = json_get_member(membuf_elems(&conn->mb), toks, "id");
if (id) { if (id) {
cmd->id = tal(cmd, u64); cmd->id = tal(cmd, u64);
if(!json_to_u64(membuf_elems(&conn->mb), id, cmd->id)) if (!json_to_u64(membuf_elems(&conn->mb), id, cmd->id))
plugin_err("JSON id '%*.s' is not a number", plugin_err("JSON id '%*.s' is not a number",
id->end - id->start, id->end - id->start,
membuf_elems(&conn->mb) + id->start); membuf_elems(&conn->mb) + id->start);

2
wallet/test/run-wallet.c

@ -957,7 +957,7 @@ static bool channelseq(struct channel *c1, struct channel *c2)
} }
CHECK((c1->last_tx != NULL) == (c2->last_tx != NULL)); CHECK((c1->last_tx != NULL) == (c2->last_tx != NULL));
if(c1->last_tx) { if (c1->last_tx) {
CHECK(bitcoin_tx_eq(c1->last_tx, c2->last_tx)); CHECK(bitcoin_tx_eq(c1->last_tx, c2->last_tx));
} }
CHECK(memeq(&c1->last_sig, sizeof(c1->last_sig), CHECK(memeq(&c1->last_sig, sizeof(c1->last_sig),

6
wallet/wallet.c

@ -3338,7 +3338,7 @@ static bool wallet_forwarded_payment_update(struct wallet *w,
db_bind_null(stmt, 3); db_bind_null(stmt, 3);
} }
if(failcode != 0) { if (failcode != 0) {
assert(state == FORWARD_FAILED || state == FORWARD_LOCAL_FAILED); assert(state == FORWARD_FAILED || state == FORWARD_LOCAL_FAILED);
db_bind_int(stmt, 4, (int)failcode); db_bind_int(stmt, 4, (int)failcode);
} else { } else {
@ -3386,7 +3386,7 @@ void wallet_forwarded_payment_add(struct wallet *w, const struct htlc_in *in,
") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);")); ") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);"));
db_bind_u64(stmt, 0, in->dbid); db_bind_u64(stmt, 0, in->dbid);
if(out) { if (out) {
db_bind_u64(stmt, 1, out->dbid); db_bind_u64(stmt, 1, out->dbid);
db_bind_u64(stmt, 3, out->key.channel->scid->u64); db_bind_u64(stmt, 3, out->key.channel->scid->u64);
db_bind_amount_msat(stmt, 5, &out->msat); db_bind_amount_msat(stmt, 5, &out->msat);
@ -3411,7 +3411,7 @@ void wallet_forwarded_payment_add(struct wallet *w, const struct htlc_in *in,
else else
db_bind_null(stmt, 8); db_bind_null(stmt, 8);
if(failcode != 0) { if (failcode != 0) {
assert(state == FORWARD_FAILED || state == FORWARD_LOCAL_FAILED); assert(state == FORWARD_FAILED || state == FORWARD_LOCAL_FAILED);
db_bind_int(stmt, 9, (int)failcode); db_bind_int(stmt, 9, (int)failcode);
} else { } else {

2
wallet/walletrpc.c

@ -726,7 +726,7 @@ static struct command_result *json_listaddrs(struct command *cmd,
for (s64 keyidx = 0; keyidx <= *bip32_max_index; keyidx++) { for (s64 keyidx = 0; keyidx <= *bip32_max_index; keyidx++) {
if(keyidx == BIP32_INITIAL_HARDENED_CHILD){ if (keyidx == BIP32_INITIAL_HARDENED_CHILD){
break; break;
} }

Loading…
Cancel
Save