Skip to content

Commit b7504d3

Browse files
committed
Use "static" linkage for usage().
1 parent 1c79c3a commit b7504d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mag2tor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <libtorrent/torrent_handle.hpp>
1616
#include <libtorrent/torrent_info.hpp>
1717

18-
int usage(const char *argv0) {
18+
static int usage(const char *argv0) {
1919
std::cerr << "usage: " << argv0 << " <magnet-url>" <<
2020
std::endl;
2121
return 1;

0 commit comments

Comments
 (0)