Update copyright year + FSF address
[idzebra-moved-to-github.git] / index / zebrash.c
index b11a63e..9ac1399 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: zebrash.c,v 1.35 2005-09-13 11:51:06 adam Exp $
-   Copyright (C) 1995-2005
+/* $Id: zebrash.c,v 1.39 2006-08-14 10:40:15 adam Exp $
+   Copyright (C) 1995-2006
    Index Data ApS
 
 This file is part of the Zebra server.
@@ -15,9 +15,9 @@ FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 for more details.
 
 You should have received a copy of the GNU General Public License
-along with Zebra; see the file LICENSE.zebra.  If not, write to the
-Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
 */
 
 /* 
@@ -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
+ */
+