Makefile: use generic rules to make spec-derived sources.

Now we use the same Makefile rules for all CSV->C generation.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-08-31 10:43:25 +09:30
committed by neil saitug
parent a00179d557
commit 8150d28575
74 changed files with 212 additions and 227 deletions

View File

@@ -57,8 +57,8 @@
#include <stdlib.h>
#include <unistd.h>
#include <wally_bip32.h>
#include <wire/gen_common_wire.h>
#include <wire/gen_onion_wire.h>
#include <wire/common_wiregen.h>
#include <wire/onion_wiregen.h>
#include <wire/wire_sync.h>
struct close_command {
@@ -2376,14 +2376,14 @@ static struct command_result *json_sendcustommsg(struct command *cmd,
return command_param_failed();
type = fromwire_peektype(msg);
if (wire_type_is_defined(type)) {
if (peer_wire_is_defined(type)) {
return command_fail(
cmd, JSONRPC2_INVALID_REQUEST,
"Cannot send messages of type %d (%s). It is not possible "
"to send messages that have a type managed internally "
"since that might cause issues with the internal state "
"tracking.",
type, wire_type_name(type));
type, peer_wire_name(type));
}
if (type % 2 == 0) {