aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-socket-server.c
diff options
context:
space:
mode:
authorNeal Walfield <[email protected]>2002-11-21 03:08:50 +0000
committerNeal Walfield <[email protected]>2002-11-21 03:08:50 +0000
commitd9a1391a0d233fee49a9d21626754ec8c8575713 (patch)
tree86393726b2fa0cf840affb5630dd533a917eabc1 /src/assuan-socket-server.c
parentBe more generous in typing equal signs and better watch out for (diff)
downloadlibassuan-d9a1391a0d233fee49a9d21626754ec8c8575713.tar.gz
libassuan-d9a1391a0d233fee49a9d21626754ec8c8575713.zip
2002-11-20 Neal H. Walfield <[email protected]>
* assuan-defs.h (struct assuan_io): New structure. (struct assuan_context_s): New field, io. (_assuan_read): Depreciated. (_assuan_write): Likewise. * assuan-pipe-server.c: Include <unistd.h>. (pipe_reader): New function. (pipe_writer): Likewise. (_assuan_new_context.IO): New local static. Set to pipe_reader and pipe_writer. Use it to initialize new context. * assuan-socket-connect.c (socket_reader): New function. (socket_writer): New function. (assuan_socket_connect.IO): New local static. Set to socket_reader and socket_writer. Use it to initialize new context. * assuan-buffer.c (writen): Take an ASSUAN_CONTEXT rather than a file descriptor. Do not use _assuan_write but the write method in the supplied context. (readline): Likewise for _assuan_read. (assuan_write_line): When calling writen, pass CTX; not the file descriptor directly. (_assuan_cookie_write_data): Likewise. (_assuan_cookie_write_flush): Likewise. (_assuan_read_line): Likewise for readline. * Makefile.am (libassuan_a_SOURCES): Remove assuan-io.c. * assuan-io.c: Removed.
Diffstat (limited to 'src/assuan-socket-server.c')
-rw-r--r--src/assuan-socket-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assuan-socket-server.c b/src/assuan-socket-server.c
index bfa9cfa..c0a9a25 100644
--- a/src/assuan-socket-server.c
+++ b/src/assuan-socket-server.c
@@ -145,7 +145,7 @@ assuan_init_connected_socket_server (ASSUAN_CONTEXT *r_ctx, int fd)
if (!ctx)
return ASSUAN_Out_Of_Core;
ctx->is_server = 1;
- ctx->pipe_mode = 1; /* we wan't a second accept to indicate EOF */
+ ctx->pipe_mode = 1; /* we want a second accept to indicate EOF */
ctx->input_fd = -1;
ctx->output_fd = -1;