* mailbox2/pop3_stream.c: Use a buffered stream.
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -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; | ... | ... |
-
Please register or sign in to post a comment