From 85f1d1a0c611b54db8dd799e3b59be04a873c54e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 6 Jun 2005 07:25:47 +0000 Subject: [PATCH] Warn about unknown Z39.50 options --- client/client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/client.c b/client/client.c index 7f25a9d..b5a11eb 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: client.c,v 1.282 2005-05-20 06:22:48 ja7 Exp $ + * $Id: client.c,v 1.283 2005-06-06 07:25:47 adam Exp $ */ #include @@ -2283,6 +2283,8 @@ static int cmd_options(const char *arg) int r; int pos; r = yaz_init_opt_encode(&z3950_options, arg, &pos); + if (r == -1) + printf("Unknown option(s) near %s\n", arg+pos); } else { -- 1.7.10.4