From b06636208651777c08e2456bf3b5953fc3c0f2c2 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 1 Oct 2013 14:53:00 +0200 Subject: [PATCH] Remove timeout member from COMSTACK Was never used for anything --- include/yaz/comstack.h | 3 --- src/tcpip.c | 1 - src/unix.c | 1 - 3 files changed, 5 deletions(-) diff --git a/include/yaz/comstack.h b/include/yaz/comstack.h index cea7db4..8b6cc9f 100644 --- a/include/yaz/comstack.h +++ b/include/yaz/comstack.h @@ -39,8 +39,6 @@ YAZ_BEGIN_CDECL -#define COMSTACK_DEFAULT_TIMEOUT -1 /* not used yet */ - struct comstack; typedef struct comstack *COMSTACK; typedef COMSTACK (*CS_TYPE)(int s, int flags, int protocol, void *vp); @@ -50,7 +48,6 @@ struct comstack CS_TYPE type; int cerrno; /* current error code of this stack */ int iofile; /* UNIX file descriptor for iochannel */ - int timeout; /* how long to wait for trailing blocks (ignored for now) */ void *cprivate;/* state info for lower stack */ int max_recv_bytes; /* max size of incoming package */ int state; /* current state */ diff --git a/src/tcpip.c b/src/tcpip.c index 441a010..5ed4c9b 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -234,7 +234,6 @@ COMSTACK tcpip_type(int s, int flags, int protocol, void *vp) sp->connect_response_buf = 0; sp->connect_response_len = 0; - p->timeout = COMSTACK_DEFAULT_TIMEOUT; TRC(fprintf(stderr, "Created new TCPIP comstack h=%p\n", p)); return p; diff --git a/src/unix.c b/src/unix.c index 6ee2c9d..d9061f9 100644 --- a/src/unix.c +++ b/src/unix.c @@ -167,7 +167,6 @@ COMSTACK unix_type(int s, int flags, int protocol, void *vp) state->towrite = state->written = -1; state->complete = cs_complete_auto; - p->timeout = COMSTACK_DEFAULT_TIMEOUT; TRC(fprintf(stderr, "Created new UNIX comstack\n")); return p; -- 1.7.10.4