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:
Antoine Poinsot
2020-09-23 00:49:53 +02:00
committed by Rusty Russell
parent 7db8680530
commit 15adcc915f
7 changed files with 7 additions and 13 deletions

View File

@@ -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();

View File

@@ -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);