Commit 16b8105d authored by vysheng's avatar vysheng

Fixed fail. Removed some debug output

parent efb1b482
...@@ -107,7 +107,6 @@ int net_getline (char **s, size_t *l) { ...@@ -107,7 +107,6 @@ int net_getline (char **s, size_t *l) {
_l = l; _l = l;
rl_callback_handler_install (0, got_it); rl_callback_handler_install (0, got_it);
net_loop (1, is_got_it); net_loop (1, is_got_it);
printf ("'%s'\n", *s);
return 0; return 0;
} }
......
...@@ -360,7 +360,6 @@ char *suser; ...@@ -360,7 +360,6 @@ char *suser;
extern int dc_working_num; extern int dc_working_num;
void do_send_code (const char *user) { void do_send_code (const char *user) {
suser = strdup (user); suser = strdup (user);
fprintf (stderr, "user='%s'\n", user);
want_dc_num = 0; want_dc_num = 0;
clear_packet (); clear_packet ();
out_int (CODE_auth_send_code); out_int (CODE_auth_send_code);
...@@ -440,7 +439,6 @@ int do_auth_check_phone (const char *user) { ...@@ -440,7 +439,6 @@ int do_auth_check_phone (const char *user) {
clear_packet (); clear_packet ();
out_int (CODE_auth_check_phone); out_int (CODE_auth_check_phone);
out_string (user); out_string (user);
printf ("'%s'\n", user);
check_phone_result = -1; check_phone_result = -1;
send_query (DC_working, packet_ptr - packet_buffer, packet_buffer, &check_phone_methods, 0); send_query (DC_working, packet_ptr - packet_buffer, packet_buffer, &check_phone_methods, 0);
net_loop (0, cr_f); net_loop (0, cr_f);
......
...@@ -109,7 +109,7 @@ void fetch_user (struct user *U) { ...@@ -109,7 +109,7 @@ void fetch_user (struct user *U) {
int ok = 1; int ok = 1;
int i; int i;
for (i = 0; i < user_num + chat_num; i++) { for (i = 0; i < user_num + chat_num; i++) {
if (Peers[i] != (void *)U && !strcmp (Peers[i]->print_name, U->print_name)) { if (Peers[i] != (void *)U && Peers[i]->print_name && !strcmp (Peers[i]->print_name, U->print_name)) {
ok = 0; ok = 0;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment