commit d6d69b283683bea8b5359731d7f1cb6068322d66
parent 797acb6363c37e3f2afb87ce0b76773de1f95613
Author: William Casarin <jb55@jb55.com>
Date: Sat, 22 Jan 2022 12:48:58 -0800
fix build
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lnsocket.c b/lnsocket.c
@@ -294,7 +294,7 @@ int lnsocket_make_network_tlv(unsigned char *buf, int buflen,
return 1;
}
-int lnsocket_make_ping_msg(unsigned char *buf, int buflen, u16 num_pong_bytes, u16 ignored_bytes, int *outlen)
+int lnsocket_make_ping_msg(unsigned char *buf, int buflen, u16 num_pong_bytes, u16 ignored_bytes, u16 *outlen)
{
struct cursor msg;
int i;
diff --git a/lnsocket.h b/lnsocket.h
@@ -63,7 +63,7 @@ struct lnsocket *lnsocket_create();
/* messages */
int lnsocket_make_network_tlv(unsigned char *buf, int buflen, const unsigned char **blockids, int num_blockids, struct tlv *tlv_out);
-int lnsocket_make_ping_msg(unsigned char *buf, int buflen, unsigned short num_pong_bytes, unsigned short ignored_bytes, int *outlen);
+int lnsocket_make_ping_msg(unsigned char *buf, int buflen, unsigned short num_pong_bytes, unsigned short ignored_bytes, unsigned short *outlen);
int lnsocket_make_init_msg(unsigned char *buf, int buflen, const unsigned char *globalfeatures, unsigned short gflen, const unsigned char *features, unsigned short flen, const struct tlv **tlvs, unsigned short num_tlvs, unsigned short *outlen);
int lnsocket_perform_init(struct lnsocket *ln);
diff --git a/test.c b/test.c
@@ -21,7 +21,7 @@ int main(int argc, const char *argv[])
u8 *buf;
struct lnsocket *ln;
- int len;
+ u16 len;
int ok = 1;
ln = lnsocket_create();