Browse Source

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

pr-2587
Atis Elsts 6 years ago
committed by Christian Decker
parent
commit
db2ed9e168
  1. 2
      devtools/create-gossipstore.c

2
devtools/create-gossipstore.c

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

Loading…
Cancel
Save