X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebrash.c;h=978ec6f08e5f7b8471912a7e6ce6cf11bbb4fd00;hb=11edef8271df7f3598f94373720aea3a5b6b3ad5;hp=b11a63e7242365051c4c148f1439cff4c654c1aa;hpb=3d3d0cebd23fa527a7e9d5d728e3c744acb37580;p=idzebra-moved-to-github.git diff --git a/index/zebrash.c b/index/zebrash.c index b11a63e..978ec6f 100644 --- a/index/zebrash.c +++ b/index/zebrash.c @@ -1,4 +1,4 @@ -/* $Id: zebrash.c,v 1.35 2005-09-13 11:51:06 adam Exp $ +/* $Id: zebrash.c,v 1.38 2006-05-19 13:49:34 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -365,7 +365,7 @@ static int cmd_record_insert( char *args[], WRBUF outbuff) 0); if (0==rc) { - wrbuf_printf(outbuff,"ok sysno=%d\n",sysno); + wrbuf_printf(outbuff,"ok sysno=" ZINT_FORMAT "\n",sysno); } return rc; } @@ -743,7 +743,7 @@ static int cmd_help( char *args[], WRBUF outbuff) /* If Zebra reports an error after an operation, * append it to the outbuff and log it */ -static void Zerrors ( WRBUF outbuff) +static void Zerrors (WRBUF outbuff) { int ec; if (!zh) @@ -757,7 +757,6 @@ static void Zerrors ( WRBUF outbuff) wrbuf_printf(outbuff, " Zebra error %d: %s, (%s)\n", ec, zebra_errString (zh), zebra_errAdd (zh) ); - zebra_clearError(zh); } } @@ -862,3 +861,11 @@ int main (int argc, char ** argv) shell(); return 0; } /* main */ +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +