mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
use SCNu64 instead of ld when scanning for a 64-bit value: fixes compilation on Raspberry Pi
This commit is contained in:
parent
0fc9368167
commit
db2ed9e168
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user