From 4602e6f66713b5c44cebd5a8deb2790e2cdea91e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 20 Apr 2005 12:59:51 +0000 Subject: [PATCH] Exit if multiple server addresses is given (not supported) --- client/client.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 1.7.10.4