Skip to content

Commit a988477

Browse files
committed
Fix clang type error
1 parent 29a8301 commit a988477

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/osmium/src/getrestrictions.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@
4343

4444

4545

46-
main(int argc, char *argv[]) {
46+
int main(int argc, char *argv[]) {
4747
using index_type = osmium::index::map::SparseMemArray<osmium::unsigned_object_id_type, osmium::Location>;
4848
using location_handler_type = osmium::handler::NodeLocationsForWays<index_type>;
4949

5050
if (argc != 2) {
5151
std::cerr << "file to process missing\n";
52-
exit(1);
52+
return 1;
5353
}
5454
/*
5555
* the input file
@@ -133,4 +133,5 @@ main(int argc, char *argv[]) {
133133
// relations have been cleaned up.
134134
std::cerr << "Memory:\n";
135135
collector.used_memory();
136+
return 0;
136137
}

0 commit comments

Comments
 (0)