X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Funix.c;h=559740a4f7aff8b55617c15545949f0a7d4517b4;hp=f2b26d69aee8ddfca4efcb5eed6c80460fd87576;hb=b80d372819c8c909455ca5868f6d7412dfbbef66;hpb=dfe2d4742a851b5830890ba53abd454f0513c5f7 diff --git a/src/unix.c b/src/unix.c index f2b26d6..559740a 100644 --- a/src/unix.c +++ b/src/unix.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ /** @@ -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;