X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2Fclient.c;h=bb0f250e9a077e1b6042a6b9063619b2b53ed124;hb=74af0d31a49a9ed564d09f1f2e7780ab533b4ff5;hp=4f8ccae275389c531ddeba82d79900a953cf7f0c;hpb=99d342b33ff48e94f97d631b127279f2face6124;p=yaz-moved-to-github.git diff --git a/client/client.c b/client/client.c index 4f8ccae..bb0f250 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: client.c,v 1.317 2006-10-04 07:26:00 adam Exp $ + * $Id: client.c,v 1.319 2006-11-14 08:37:16 adam Exp $ */ /** \file client.c * \brief yaz-client program @@ -686,7 +686,7 @@ int session_connect(const char *arg) conn = cs_create_host(arg, 1, &add); if (!conn) { - printf ("Couldn't create comstack\n"); + printf ("Could not resolve address %s\n", arg); return 0; } #if YAZ_HAVE_XML2 @@ -711,12 +711,6 @@ int session_connect(const char *arg) if (cs_connect(conn, add) < 0) { printf ("error = %s\n", cs_strerror(conn)); - if (conn->cerrno == CSYSERR) - { - char msg[256]; - yaz_strerror(msg, sizeof(msg)); - printf ("%s\n", msg); - } cs_close(conn); conn = 0; return 0; @@ -2226,7 +2220,7 @@ static int cmd_update_common(const char *arg, int version) notToKeep->elements[0] = (Z_IU0SuppliedRecords_elem *) odr_malloc(out, sizeof(**notToKeep->elements)); notToKeep->elements[0]->which = Z_IUSuppliedRecords_elem_opaque; - if (*recid) + if (*recid && strcmp(recid, "none")) { notToKeep->elements[0]->u.opaque = (Odr_oct *) odr_malloc (out, sizeof(Odr_oct));