Skip to content

Commit cb176c4

Browse files
committed
Rename "tcp_udp" variable to "sess_tcp_udp".
1 parent dd7e40b commit cb176c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mag2tor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int main(int argc, char *argv[]) {
3838

3939
lt::session_settings sset;
4040
lt::add_torrent_params atp;
41-
int tcp_udp = 0;
41+
int sess_tcp_udp = 0;
4242
char *magnet_url = NULL;
4343

4444
for (;;) {
@@ -52,14 +52,14 @@ int main(int argc, char *argv[]) {
5252
if (c == -1) break;
5353
switch (c) {
5454
case 'a': sset.anonymous_mode = true; break;
55-
case 't': tcp_udp |= 1; break;
56-
case 'u': tcp_udp |= 2; break;
55+
case 't': sess_tcp_udp |= 1; break;
56+
case 'u': sess_tcp_udp |= 2; break;
5757
default: return usage(argv[0]);;
5858
}
5959
}
6060
if (argc - optind != 1) return usage(argv[0]);
6161
atp.url = argv[optind];
62-
switch (tcp_udp) {
62+
switch (sess_tcp_udp) {
6363
case 0:
6464
sset.prefer_udp_trackers = false;
6565
sset.enable_outgoing_tcp = true;

0 commit comments

Comments
 (0)