diff options
author | Internet Software Consortium, Inc <@isc.org> | 2007-09-07 14:14:52 -0600 |
---|---|---|
committer | LaMont Jones <lamont@debian.org> | 2007-09-07 14:14:52 -0600 |
commit | 76cf0043206b48d5a240588d3e715498446e8e07 (patch) | |
tree | 2e1394238f8dbc3548ecd2e7dca848dba9128704 /lib/bind/irs | |
parent | 169e1b424a599d00ce8dab1e3551740f9d06521b (diff) | |
download | bind9-76cf0043206b48d5a240588d3e715498446e8e07.tar.gz |
9.2.5beta2
Diffstat (limited to 'lib/bind/irs')
-rw-r--r-- | lib/bind/irs/Makefile.in | 6 | ||||
-rw-r--r-- | lib/bind/irs/dns_nw.c | 4 | ||||
-rw-r--r-- | lib/bind/irs/gai_strerror.c | 5 | ||||
-rw-r--r-- | lib/bind/irs/gen.c | 8 | ||||
-rw-r--r-- | lib/bind/irs/getnetgrent_r.c | 3 | ||||
-rw-r--r-- | lib/bind/irs/getpwent_r.c | 6 | ||||
-rw-r--r-- | lib/bind/irs/irs_data.c | 7 |
7 files changed, 23 insertions, 16 deletions
diff --git a/lib/bind/irs/Makefile.in b/lib/bind/irs/Makefile.in index d5da336e..6e9209fb 100644 --- a/lib/bind/irs/Makefile.in +++ b/lib/bind/irs/Makefile.in @@ -13,12 +13,12 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: Makefile.in,v 1.7.2.1 2004/03/09 06:10:45 marka Exp $ +# $Id: Makefile.in,v 1.7.2.3 2004/12/07 00:37:30 marka Exp $ srcdir= @srcdir@ VPATH = @srcdir@ -WANT_IRS_THREADS_OBJS= gethostent_r.@O@ getnetgrent_r.@O@ \ +WANT_IRS_THREADS_OBJS= gethostent_r.@O@ getnetent_r.@O@ getnetgrent_r.@O@ \ getprotoent_r.@O@ getservent_r.@O@ WANT_IRS_NISGR_OBJS= nis_gr.@O@ @@ -40,7 +40,7 @@ OBJS= @WANT_IRS_GR_OBJS@ @WANT_IRS_NIS_OBJS@ @WANT_IRS_THREADS_OBJS@ \ dns_sv.@O@ gai_strerror.@O@ gen.@O@ gen_ho.@O@ \ gen_ng.@O@ gen_nw.@O@ gen_pr.@O@ gen_sv.@O@ \ getaddrinfo.@O@ gethostent.@O@ \ - getnameinfo.@O@ getnetent.@O@ getnetent_r.@O@ \ + getnameinfo.@O@ getnetent.@O@ \ getnetgrent.@O@ getprotoent.@O@ getservent.@O@ \ hesiod.@O@ irp.@O@ irp_ho.@O@ irp_ng.@O@ irp_nw.@O@ \ irp_pr.@O@ irp_sv.@O@ irpmarshall.@O@ irs_data.@O@ \ diff --git a/lib/bind/irs/dns_nw.c b/lib/bind/irs/dns_nw.c index 106f50d1..9d9659bf 100644 --- a/lib/bind/irs/dns_nw.c +++ b/lib/bind/irs/dns_nw.c @@ -16,7 +16,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$Id: dns_nw.c,v 1.3.2.7 2004/05/17 07:46:42 marka Exp $"; +static const char rcsid[] = "$Id: dns_nw.c,v 1.3.2.8 2004/09/16 00:57:45 marka Exp $"; #endif /* LIBC_SCCS and not lint */ /* Imports. */ @@ -569,7 +569,7 @@ normalize_name(char *name) { /* Make lower case. */ for (t = name; *t; t++) if (isascii((unsigned char)*t) && isupper((unsigned char)*t)) - *t = tolower(*t); + *t = tolower((*t)&0xff); /* Remove trailing dots. */ while (t > name && t[-1] == '.') diff --git a/lib/bind/irs/gai_strerror.c b/lib/bind/irs/gai_strerror.c index 7355b93c..6aeaaa19 100644 --- a/lib/bind/irs/gai_strerror.c +++ b/lib/bind/irs/gai_strerror.c @@ -52,7 +52,10 @@ gai_strerror(int ecode) { #ifndef DO_PTHREADS static char buf[EAI_BUFSIZE]; #else /* DO_PTHREADS */ - static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; +#ifndef LIBBIND_MUTEX_INITIALIZER +#define LIBBIND_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER +#endif + static pthread_mutex_t lock = LIBBIND_MUTEX_INITIALIZER; static pthread_key_t key; static int once = 0; char *buf; diff --git a/lib/bind/irs/gen.c b/lib/bind/irs/gen.c index d3898032..b9802b0e 100644 --- a/lib/bind/irs/gen.c +++ b/lib/bind/irs/gen.c @@ -16,7 +16,7 @@ */ #if !defined(LINT) && !defined(CODECENTER) -static const char rcsid[] = "$Id: gen.c,v 1.3.2.2 2004/03/17 00:40:12 marka Exp $"; +static const char rcsid[] = "$Id: gen.c,v 1.3.2.3 2004/09/16 00:57:46 marka Exp $"; #endif /* @@ -391,8 +391,10 @@ init_map_rules(struct gen_p *irs, const char *conf_file) { default_map_rules(irs); return; } - (void) sprintf(pattern, "%%%ds %%%ds %%%ds\n", - sizeof mapname, sizeof accname, sizeof options); + (void) sprintf(pattern, "%%%lus %%%lus %%%lus\n", + (unsigned long)sizeof mapname, + (unsigned long)sizeof accname, + (unsigned long)sizeof options); while (fgets(line, sizeof line, conf)) { enum irs_map_id map; enum irs_acc_id acc; diff --git a/lib/bind/irs/getnetgrent_r.c b/lib/bind/irs/getnetgrent_r.c index 085867df..d4dcc0bc 100644 --- a/lib/bind/irs/getnetgrent_r.c +++ b/lib/bind/irs/getnetgrent_r.c @@ -16,7 +16,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$Id: getnetgrent_r.c,v 1.5.2.3 2004/04/13 04:49:01 marka Exp $"; +static const char rcsid[] = "$Id: getnetgrent_r.c,v 1.5.2.4 2004/11/30 01:15:59 marka Exp $"; #endif /* LIBC_SCCS and not lint */ #include <port_before.h> @@ -29,7 +29,6 @@ static const char rcsid[] = "$Id: getnetgrent_r.c,v 1.5.2.3 2004/04/13 04:49:01 #include <sys/types.h> #include <netinet/in.h> #include <netdb.h> -#include <netgroup.h> #include <stdlib.h> #include <port_after.h> diff --git a/lib/bind/irs/getpwent_r.c b/lib/bind/irs/getpwent_r.c index a2adebf0..3d7696e4 100644 --- a/lib/bind/irs/getpwent_r.c +++ b/lib/bind/irs/getpwent_r.c @@ -16,7 +16,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$Id: getpwent_r.c,v 1.5.2.1 2004/03/09 09:17:31 marka Exp $"; +static const char rcsid[] = "$Id: getpwent_r.c,v 1.5.2.2 2004/09/17 13:32:07 marka Exp $"; #endif /* LIBC_SCCS and not lint */ #include <port_before.h> @@ -130,7 +130,7 @@ getpwuid_r(uid_t uid, struct passwd *pwptr, char *buf, int buflen) { PASS_R_RETURN getpwent_r(struct passwd *pwptr, PASS_R_ARGS) { struct passwd *pw = getpwent(); - int res; + int res = 0; if (pw == NULL) return (PASS_R_BAD); @@ -184,7 +184,7 @@ endpwent_r(void) PASS_R_RETURN fgetpwent_r(FILE *f, struct passwd *pwptr, PASS_R_COPY_ARGS) { struct passwd *pw = fgetpwent(f); - int res; + int res = 0; if (pw == NULL) return (PASS_R_BAD); diff --git a/lib/bind/irs/irs_data.c b/lib/bind/irs/irs_data.c index 3f6db55d..7bdd350d 100644 --- a/lib/bind/irs/irs_data.c +++ b/lib/bind/irs/irs_data.c @@ -16,7 +16,7 @@ */ #if !defined(LINT) && !defined(CODECENTER) -static const char rcsid[] = "$Id: irs_data.c,v 1.3.2.4 2004/03/17 00:40:13 marka Exp $"; +static const char rcsid[] = "$Id: irs_data.c,v 1.3.2.5 2004/11/30 01:15:59 marka Exp $"; #endif #include "port_before.h" @@ -121,7 +121,10 @@ net_data_destroy(void *p) { struct net_data * net_data_init(const char *conf_file) { #ifdef DO_PTHREADS - static pthread_mutex_t keylock = PTHREAD_MUTEX_INITIALIZER; +#ifndef LIBBIND_MUTEX_INITIALIZER +#define LIBBIND_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER +#endif + static pthread_mutex_t keylock = LIBBIND_MUTEX_INITIALIZER; struct net_data *net_data; if (!once) { |