From db2ed9e1686c3a3d43d0d0ad441e2587cbd10049 Mon Sep 17 00:00:00 2001 From: Atis Elsts Date: Tue, 9 Apr 2019 11:19:54 +0300 Subject: [PATCH] use SCNu64 instead of ld when scanning for a 64-bit value: fixes compilation on Raspberry Pi --- devtools/create-gossipstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/create-gossipstore.c b/devtools/create-gossipstore.c index 5657d6864..a9a26b15c 100644 --- a/devtools/create-gossipstore.c +++ b/devtools/create-gossipstore.c @@ -28,7 +28,7 @@ struct scidsat * load_scid_file(FILE * scidfd) return NULL; struct scidsat * scids = calloc(n, sizeof(scidsat)); int i = 0; - while(fscanf(scidfd, "%s ,%ld\n", scids[i].scid, &scids[i].sat.satoshis) == 2 ) { /* Raw: read from file */ + while(fscanf(scidfd, "%s ,%" SCNu64 "\n", scids[i].scid, &scids[i].sat.satoshis) == 2 ) { /* Raw: read from file */ i++; } return scids;