whitespace

This commit is contained in:
Nikolaj
2021-09-29 15:23:58 +02:00
parent a211face12
commit 90ddd7f780
10 changed files with 302 additions and 302 deletions

View File

@@ -4,22 +4,22 @@
#include "record.h"
int main(int argc, char** argv) {
if (argc != 2) {
fprintf(stderr, "Usage: %s FILE\n", argv[1]);
return 1;
}
int n;
struct record* rs = read_records(argv[1], &n);
if (!rs) {
fprintf(stderr, "Failed to read records from %s\n", argv[1]);
return 1;
}
while (1) {
if (printf("%ld\n", (long)rs[rand() % n].osm_id) == 0) {
break;
if (argc != 2) {
fprintf(stderr, "Usage: %s FILE\n", argv[1]);
return 1;
}
int n;
struct record* rs = read_records(argv[1], &n);
if (!rs) {
fprintf(stderr, "Failed to read records from %s\n", argv[1]);
return 1;
}
while (1) {
if (printf("%ld\n", (long)rs[rand() % n].osm_id) == 0) {
break;
}
}
}
}