mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
Remove varint typedef for bigsize
It's not part of the spec anymore Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
7db8680530
commit
15adcc915f
@@ -49,7 +49,7 @@ int main(int argc, char *argv[])
|
||||
tlvs = NULL;
|
||||
else if (argc == 6) {
|
||||
tlvs = tlv_query_channel_range_tlvs_new(ctx);
|
||||
tlvs->query_option = tal(tlvs, varint);
|
||||
tlvs->query_option = tal(tlvs, bigsize_t);
|
||||
*tlvs->query_option = strtol(argv[5], NULL, 0);
|
||||
} else
|
||||
usage();
|
||||
|
||||
@@ -14,10 +14,6 @@ struct tlv_print_record_type {
|
||||
typedef u64 bigsize;
|
||||
#define printwire_bigsize printwire_u64
|
||||
|
||||
/* FIXME: Some versions of spec using 'varint' for bigsize' */
|
||||
typedef bigsize varint;
|
||||
#define printwire_varint printwire_bigsize
|
||||
|
||||
void printwire_u8(const char *fieldname, const u8 *v);
|
||||
void printwire_u16(const char *fieldname, const u16 *v);
|
||||
void printwire_u32(const char *fieldname, const u32 *v);
|
||||
|
||||
Reference in New Issue
Block a user