Commit 97c62c33 97c62c3306780d1e1f1a0ef57791a1a6534e8d22 by Alain Magloire

pop3client.c:

	minor buf fixing.
nntpclient.c :
	adusted to the new API
1 parent 16056b55
...@@ -681,7 +681,7 @@ com_connect (char *arg) ...@@ -681,7 +681,7 @@ com_connect (char *arg)
681 stream_t tcp; 681 stream_t tcp;
682 682
683 if (verbose) 683 if (verbose)
684 com_verbose ("verbose on"); 684 com_verbose ("on");
685 status = 685 status =
686 tcp_stream_create (&tcp, host, port, 686 tcp_stream_create (&tcp, host, port,
687 MU_STREAM_READ | MU_STREAM_NO_CHECK); 687 MU_STREAM_READ | MU_STREAM_NO_CHECK);
...@@ -703,7 +703,7 @@ com_connect (char *arg) ...@@ -703,7 +703,7 @@ com_connect (char *arg)
703 } 703 }
704 704
705 int 705 int
706 com_disconnect (char *arg) 706 com_disconnect (char *arg ARG_UNUSED)
707 { 707 {
708 (void) arg; 708 (void) arg;
709 if (pop3) 709 if (pop3)
...@@ -718,11 +718,12 @@ com_disconnect (char *arg) ...@@ -718,11 +718,12 @@ com_disconnect (char *arg)
718 int 718 int
719 com_quit (char *arg ARG_UNUSED) 719 com_quit (char *arg ARG_UNUSED)
720 { 720 {
721 int status = 0;
721 if (pop3) 722 if (pop3)
722 { 723 {
723 if (mu_pop3_quit (pop3) == 0) 724 if (mu_pop3_quit (pop3) == 0)
724 { 725 {
725 mu_pop3_disconnect (pop3); 726 status = com_disconnect (arg);
726 } 727 }
727 else 728 else
728 { 729 {
...@@ -731,7 +732,7 @@ com_quit (char *arg ARG_UNUSED) ...@@ -731,7 +732,7 @@ com_quit (char *arg ARG_UNUSED)
731 } 732 }
732 else 733 else
733 fprintf (stdout, "Try 'exit' to leave %s\n", progname); 734 fprintf (stdout, "Try 'exit' to leave %s\n", progname);
734 return 0; 735 return status;
735 } 736 }
736 737
737 int 738 int
......