X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Funix.c;h=6ee2c9d19817a50b616c8c3e2a8f79441655e13c;hp=7fe4b7773dbcbd3c4126a4feff5e5828aa4a4995;hb=e14b57aabd2bcdd5996d17778bf9055935d7b252;hpb=2b8637b1b34cbbd57cee3cd1b493f5a8231e9afd diff --git a/src/unix.c b/src/unix.c index 7fe4b77..6ee2c9d 100644 --- a/src/unix.c +++ b/src/unix.c @@ -165,10 +165,7 @@ 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"));