Skip to content

Commit 6ba310d

Browse files
committed
Rename "ses" variable to "sess".
1 parent 124f95b commit 6ba310d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

mag2tor.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ int main(int argc, char *argv[]) {
2323
return 1;
2424
}
2525

26-
lt::session ses;
26+
lt::session sess;
2727
lt::add_torrent_params atp;
2828
atp.url = argv[1];
2929
atp.upload_mode = true;
@@ -40,11 +40,11 @@ int main(int argc, char *argv[]) {
4040
| lt::add_torrent_params::flag_upload_mode
4141
| lt::add_torrent_params::flag_apply_ip_filter;
4242
*/
43-
lt::torrent_handle torh = ses.add_torrent(atp);
43+
lt::torrent_handle torh = sess.add_torrent(atp);
4444
std::cout << atp.url << ":";
4545
for (;;) {
4646
std::deque<lt::alert*> alerts;
47-
ses.pop_alerts(&alerts);
47+
sess.pop_alerts(&alerts);
4848
for (lt::alert const* a : alerts) {
4949
std::cout << std::endl << a->message() << std::endl;
5050
// quit on error/finish:
@@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
5454
};
5555
}
5656
if (torh.status().has_metadata) {
57-
ses.pause();
57+
sess.pause();
5858
lt::torrent_info tinf =
5959
torh.get_torrent_info();
6060
std::cout << tinf.name() << std::endl;
@@ -68,7 +68,7 @@ int main(int argc, char *argv[]) {
6868
lt::bencode(ofsi, lt::create_torrent(tinf)
6969
.generate());
7070
ofs.close();
71-
ses.remove_torrent(torh);
71+
sess.remove_torrent(torh);
7272
goto done0;
7373
};
7474
std::cout << ".";

0 commit comments

Comments
 (0)