From: Adam Dickmeiss Date: Wed, 20 Apr 2005 12:59:51 +0000 (+0000) Subject: Exit if multiple server addresses is given (not supported) X-Git-Tag: YAZ.2.1.4~11 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=4602e6f66713b5c44cebd5a8deb2790e2cdea91e Exit if multiple server addresses is given (not supported) --- diff --git a/client/client.c b/client/client.c index 033aea1..9f44998 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.275 2005-03-06 12:54:32 adam Exp $ + * $Id: client.c,v 1.276 2005-04-20 12:59:51 adam Exp $ */ #include @@ -4447,6 +4447,12 @@ int main(int argc, char **argv) strcpy (open_command, "open "); strcat (open_command, arg); } + else + { + fprintf(stderr, "%s: Specify at most one server address\n", + prog); + exit(1); + } break; case 'd': dump_file_prefix = arg;