diff options
author | Florent Thoumie <flz@FreeBSD.org> | 2006-07-12 19:04:53 +0000 |
---|---|---|
committer | Florent Thoumie <flz@FreeBSD.org> | 2006-07-12 19:04:53 +0000 |
commit | 0338d1e30d89127848a4fee10118d8f9db30d0aa (patch) | |
tree | 5b46f5c0833daf0d5f8b0484a6ada5ae6bef401a /net-p2p/rtorrent | |
parent | a2aab3122c558df8c1a16521982ed982ab1b2353 (diff) |
Notes
Diffstat (limited to 'net-p2p/rtorrent')
-rw-r--r-- | net-p2p/rtorrent/files/stable-src_option__parser.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net-p2p/rtorrent/files/stable-src_option__parser.cc b/net-p2p/rtorrent/files/stable-src_option__parser.cc new file mode 100644 index 000000000000..fe21794d59a6 --- /dev/null +++ b/net-p2p/rtorrent/files/stable-src_option__parser.cc @@ -0,0 +1,12 @@ +--- src/option_parser.cc.orig Wed Jul 12 10:31:59 2006 ++++ src/option_parser.cc Wed Jul 12 10:32:15 2006 +@@ -77,9 +77,6 @@ + int c; + std::string optString = create_optstring(); + +- optind = 0; +- opterr = 0; +- + while ((c = getopt(argc, argv, optString.c_str())) != -1) + if (c == '?') + throw std::runtime_error("Invalid/unknown option flag \"-" + std::string(1, (char)optopt) + "\". See rtorrent -h for more information."); |