X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Funix.c;h=d9061f9029c415821cd35ac6cf346c64aeac5315;hp=7fe4b7773dbcbd3c4126a4feff5e5828aa4a4995;hb=b06636208651777c08e2456bf3b5953fc3c0f2c2;hpb=0c46d2e66bdeea1600e700124a81a5d0a65d349e diff --git a/src/unix.c b/src/unix.c index 7fe4b77..d9061f9 100644 --- a/src/unix.c +++ b/src/unix.c @@ -165,12 +165,8 @@ COMSTACK unix_type(int s, int flags, int protocol, void *vp) state->altbuf = 0; state->altsize = state->altlen = 0; state->towrite = state->written = -1; - if (protocol == PROTO_WAIS) - state->complete = completeWAIS; - else - state->complete = cs_complete_auto; + state->complete = cs_complete_auto; - p->timeout = COMSTACK_DEFAULT_TIMEOUT; TRC(fprintf(stderr, "Created new UNIX comstack\n")); return p;