Browse Source
cc -DBINTOPKGLIBEXECDIR="\"../libexec/c-lightning\"" -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -Werror -Wno-error=maybe-uninitialized -std=gnu11 -g -fstack-protector -Og -I ccan -I external/libwally-core/include/ -I external/libwally-core/src/secp256k1/include/ -I external/jsmn/ -I external/libbacktrace/ -I external/libbacktrace-build -I . -I/usr/local/include -DSHACHAIN_BITS=48 -DJSMN_PARENT_LINKS -DCOMPAT_V052=1 -DCOMPAT_V060=1 -DCOMPAT_V061=1 -DCOMPAT_V062=1 -DCOMPAT_V070=1 -DBINTOPKGLIBEXECDIR="\"../libexec/c-lightning\"" -c -o common/sphinx.o common/sphinx.c common/sphinx.c: In function 'sphinx_parse_payload': common/sphinx.c:488:30: error: passing argument 3 of 'varint_get' from incompatible pointer type [-Werror=incompatible-pointer-types] vsize = varint_get(src, 3, &raw_size); ^ In file included from common/sphinx.c:3:0: ./bitcoin/varint.h:16:8: note: expected 'u64 * {aka long long unsigned int *}' but argument is of type 'size_t * {aka unsigned int *}' size_t varint_get(const u8 *p, size_t max_len, varint_t *val); ^~~~~~~~~~ common/sphinx.c: In function 'process_onionpacket': common/sphinx.c:621:40: error: passing argument 3 of 'bigsize_get' from incompatible pointer type [-Werror=incompatible-pointer-types] vsize = bigsize_get(paddedheader, 3, &shift_size); ^ In file included from common/sphinx.c:3:0: ./bitcoin/varint.h:23:8: note: expected 'u64 * {aka long long unsigned int *}' but argument is of type 'size_t * {aka unsigned int *}' size_t bigsize_get(const u8 *p, size_t max, varint_t *val);pull/2938/head
Chirimen-Jako
5 years ago
committed by
Rusty Russell
1 changed files with 4 additions and 2 deletions
Loading…
Reference in new issue