From aded4afa2654819952f3d1c58b1d80ffad7d67cb Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 15 Oct 2001 11:35:46 +0000 Subject: [PATCH] fixed cdb zonefiles --- isdnlog/tools/cdb/cdbmake_hash.c | 2 +- isdnlog/tools/zone.c | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/isdnlog/tools/cdb/cdbmake_hash.c b/isdnlog/tools/cdb/cdbmake_hash.c index 4e7a946b..00e4e871 100644 --- a/isdnlog/tools/cdb/cdbmake_hash.c +++ b/isdnlog/tools/cdb/cdbmake_hash.c @@ -5,6 +5,6 @@ uint32 h; unsigned int c; { h += (h << 5); - h ^= (uint32)c; + h ^= (uint32) (unsigned char)c; return h; } diff --git a/isdnlog/tools/zone.c b/isdnlog/tools/zone.c index 7a558346..da1c4027 100644 --- a/isdnlog/tools/zone.c +++ b/isdnlog/tools/zone.c @@ -1,4 +1,4 @@ -/* $Id: zone.c,v 1.21 2001/06/12 14:24:17 paul Exp $ +/* $Id: zone.c,v 1.22 2001/10/15 11:35:46 leo Exp $ * * Zonenberechnung * @@ -19,6 +19,9 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Log: zone.c,v $ + * Revision 1.22 2001/10/15 11:35:46 leo + * fixed cdb zonefiles + * * Revision 1.21 2001/06/12 14:24:17 paul * zone.c and mkzonedb.c now understand filename "-" to mean stdin. * @@ -130,13 +133,16 @@ #ifdef STANDALONE #include #include +#ifdef __GLIBC__ +# define __USE_GNU /* for declaration of basename() */ +#endif #include #include #include #include #include #include -#ifndef __GLIBC__ +#if !defined(__GLIBC__) && !defined(basename) extern const char *basename (const char *name); #endif #else