whitespace
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user