X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=comstack%2Funix.c;h=bfd6de100a13b9d8482633d69663cd5caa6795af;hb=b782d2bdebee1a46cc8d7336ce21e9b023baa349;hp=235c9b14f8de1cdbeb2f8d9ab425ffab1e2fb2f0;hpb=7d4006fb1914018d99ea9764aa45b8edc86ebd5d;p=yaz-moved-to-github.git diff --git a/comstack/unix.c b/comstack/unix.c index 235c9b1..bfd6de1 100644 --- a/comstack/unix.c +++ b/comstack/unix.c @@ -1,8 +1,8 @@ /* - * Copyright (c) 1995-2002, Index Data + * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: unix.c,v 1.8 2002-12-15 21:22:58 adam Exp $ + * $Id: unix.c,v 1.10 2003-02-21 12:08:58 adam Exp $ * UNIX socket COMSTACK. By Morten Bøgeskov. */ #ifndef WIN32 @@ -23,9 +23,6 @@ #include #include -/* Chas added the following, so we get the definition of completeBER */ -#include - #ifndef YAZ_SOCKLEN_T #define YAZ_SOCKLEN_T int #endif @@ -140,7 +137,7 @@ COMSTACK unix_type(int s, int blocking, int protocol, void *vp) if (protocol == PROTO_WAIS) state->complete = completeWAIS; else - state->complete = completeBER; + state->complete = cs_complete_auto; p->timeout = COMSTACK_DEFAULT_TIMEOUT; TRC(fprintf(stderr, "Created new UNIX comstack\n"));