Commit 2a86436d 2a86436dde010b804a4d360fe5c2c4ec1ca8f8d3 by Alain Magloire

* mailbox2/pop3_stream.c: Use a buffered stream.

1 parent ce118732
...@@ -48,11 +48,11 @@ pop3_get_stream (pop3_t pop3, stream_t *pstream) ...@@ -48,11 +48,11 @@ pop3_get_stream (pop3_t pop3, stream_t *pstream)
48 48
49 if (pop3->stream == NULL) 49 if (pop3->stream == NULL)
50 { 50 {
51 int status = stream_tcp_create (&(pop3->stream)); 51 stream_t stream = NULL;
52 int status = stream_tcp_create (&stream));
52 if (status) 53 if (status)
53 return status; 54 return status;
54 /* Using the awkward stream_t buffering. */ 55 stream_buffer_create (&(pop3->stream), stream, 1024); */
55 /* stream_setbufsiz (pop3->stream, 1024); */
56 } 56 }
57 *pstream = pop3->stream; 57 *pstream = pop3->stream;
58 return 0; 58 return 0;
......