mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
use SCNu64 instead of ld when scanning for a 64-bit value: fixes compilation on Raspberry Pi
This commit is contained in:
committed by
Christian Decker
parent
0fc9368167
commit
db2ed9e168
@@ -28,7 +28,7 @@ struct scidsat * load_scid_file(FILE * scidfd)
|
|||||||
return NULL;
|
return NULL;
|
||||||
struct scidsat * scids = calloc(n, sizeof(scidsat));
|
struct scidsat * scids = calloc(n, sizeof(scidsat));
|
||||||
int i = 0;
|
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++;
|
i++;
|
||||||
}
|
}
|
||||||
return scids;
|
return scids;
|
||||||
|
|||||||
Reference in New Issue
Block a user