X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2Fclient.c;h=91883c101a51de5e765eb7bf822812f6dd4e2aab;hb=2edee0444eb7d2aba3528a6ae6523c2d1dd92a18;hp=3ea046e12cea2b6b91c66fe9465df66b4c1d3a4d;hpb=2ede0bb278b22c8ce1cdd48e9a11a5924d433763;p=yaz-moved-to-github.git diff --git a/client/client.c b/client/client.c index 3ea046e..91883c1 100644 --- a/client/client.c +++ b/client/client.c @@ -1,8 +1,8 @@ /* - * Copyright (C) 1995-2006, Index Data ApS + * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: client.c,v 1.320 2006-12-06 21:35:57 adam Exp $ + * $Id: client.c,v 1.322 2007-01-03 08:42:13 adam Exp $ */ /** \file client.c * \brief yaz-client program @@ -2167,12 +2167,14 @@ static int cmd_update_common(const char *arg, int version) if (parse_cmd_doc(&arg, out, &rec_buf, &rec_len, 1) == 0) return 0; +#if YAZ_HAVE_XML2 if (protocol == PROTO_HTTP) return cmd_update_SRW(action_no, recid, rec_buf, rec_len); - else - return cmd_update_Z3950(version, action_no, recid, rec_buf, rec_len); +#endif + return cmd_update_Z3950(version, action_no, recid, rec_buf, rec_len); } +#if YAZ_HAVE_XML2 static int cmd_update_SRW(int action_no, const char *recid, char *rec_buf, int rec_len) { @@ -2209,6 +2211,7 @@ static int cmd_update_SRW(int action_no, const char *recid, return send_srw(srw); } } +#endif static int cmd_update_Z3950(int version, int action_no, const char *recid, char *rec_buf, int rec_len)