From: Adam Dickmeiss Date: Mon, 6 Jun 2005 10:45:33 +0000 (+0000) Subject: Re-organize top-level code so main functions does less work. X-Git-Tag: YAZ.2.1.8~7 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=44243f1a421921f27b7f4ab986a0d0a02285b664;ds=sidebyside Re-organize top-level code so main functions does less work. --- diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 2f27942..89c0239 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: zoomsh.c,v 1.33 2005-06-06 10:29:35 adam Exp $ + * $Id: zoomsh.c,v 1.34 2005-06-06 10:45:33 adam Exp $ */ /* ZOOM-C Shell */ @@ -549,14 +549,13 @@ void shell(ZOOM_connection *c, ZOOM_resultset *r, } } -int main (int argc, char **argv) +static void zoomsh(int argc, char **argv) { ZOOM_options options = ZOOM_options_create(); int i, res; ZOOM_connection z39_con[MAX_CON]; ZOOM_resultset z39_res[MAX_CON]; - nmem_init(); for (i = 0; i