use SCNu64 instead of ld when scanning for a 64-bit value: fixes compilation on Raspberry Pi

This commit is contained in:
Atis Elsts 2019-04-09 11:19:54 +03:00 committed by Christian Decker
parent 0fc9368167
commit db2ed9e168

View File

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