X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Funix.c;h=559740a4f7aff8b55617c15545949f0a7d4517b4;hp=7fe4b7773dbcbd3c4126a4feff5e5828aa4a4995;hb=b80d372819c8c909455ca5868f6d7412dfbbef66;hpb=0c46d2e66bdeea1600e700124a81a5d0a65d349e diff --git a/src/unix.c b/src/unix.c index 7fe4b77..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-2013 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;