We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29a8301 commit a988477Copy full SHA for a988477
tools/osmium/src/getrestrictions.cpp
@@ -43,13 +43,13 @@
43
44
45
46
-main(int argc, char *argv[]) {
+int main(int argc, char *argv[]) {
47
using index_type = osmium::index::map::SparseMemArray<osmium::unsigned_object_id_type, osmium::Location>;
48
using location_handler_type = osmium::handler::NodeLocationsForWays<index_type>;
49
50
if (argc != 2) {
51
std::cerr << "file to process missing\n";
52
- exit(1);
+ return 1;
53
}
54
/*
55
* the input file
@@ -133,4 +133,5 @@ main(int argc, char *argv[]) {
133
// relations have been cleaned up.
134
std::cerr << "Memory:\n";
135
collector.used_memory();
136
+ return 0;
137
0 commit comments