From 44243f1a421921f27b7f4ab986a0d0a02285b664 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 6 Jun 2005 10:45:33 +0000 Subject: [PATCH] Re-organize top-level code so main functions does less work. --- zoom/zoomsh.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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