mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
2109. [port] libbind: silence aix 5.3 compiler warnings. [RT #16502]
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,3 +1,5 @@
|
|||||||
|
2109. [port] libbind: silence aix 5.3 compiler warnings. [RT #16502]
|
||||||
|
|
||||||
2108. [func] DHCID support. [RT #16456]
|
2108. [func] DHCID support. [RT #16456]
|
||||||
|
|
||||||
2107. [bug] dighost.c: more cleanup of buffers. [RT #16499]
|
2107. [bug] dighost.c: more cleanup of buffers. [RT #16499]
|
||||||
|
@@ -52,7 +52,7 @@
|
|||||||
/* BIND Id: gethnamaddr.c,v 8.15 1996/05/22 04:56:30 vixie Exp $ */
|
/* BIND Id: gethnamaddr.c,v 8.15 1996/05/22 04:56:30 vixie Exp $ */
|
||||||
|
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
static const char rcsid[] = "$Id: dns_ho.c,v 1.20 2006/03/09 23:57:56 marka Exp $";
|
static const char rcsid[] = "$Id: dns_ho.c,v 1.21 2006/12/07 03:51:29 marka Exp $";
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
/* Imports. */
|
/* Imports. */
|
||||||
@@ -937,7 +937,7 @@ gethostans(struct irs_ho *this,
|
|||||||
bp = (char *)(((u_long)bp + (sizeof(align) - 1)) &
|
bp = (char *)(((u_long)bp + (sizeof(align) - 1)) &
|
||||||
~(sizeof(align) - 1));
|
~(sizeof(align) - 1));
|
||||||
/* Avoid overflows. */
|
/* Avoid overflows. */
|
||||||
if (bp + n >= &pvt->hostbuf[sizeof pvt->hostbuf]) {
|
if (bp + n > &pvt->hostbuf[sizeof(pvt->hostbuf) - 1]) {
|
||||||
had_error++;
|
had_error++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -1047,7 +1047,7 @@ add_hostent(struct pvt *pvt, char *bp, char **hap, struct addrinfo *ai)
|
|||||||
bp = (char *)(((u_long)bp + (sizeof(align) - 1)) &
|
bp = (char *)(((u_long)bp + (sizeof(align) - 1)) &
|
||||||
~(sizeof(align) - 1));
|
~(sizeof(align) - 1));
|
||||||
/* Avoid overflows. */
|
/* Avoid overflows. */
|
||||||
if (bp + addrlen >= &pvt->hostbuf[sizeof pvt->hostbuf])
|
if (bp + addrlen > &pvt->hostbuf[sizeof(pvt->hostbuf) - 1])
|
||||||
return(-1);
|
return(-1);
|
||||||
if (hap >= &pvt->h_addr_ptrs[MAXADDRS-1])
|
if (hap >= &pvt->h_addr_ptrs[MAXADDRS-1])
|
||||||
return(0); /*%< fail, but not treat it as an error. */
|
return(0); /*%< fail, but not treat it as an error. */
|
||||||
|
@@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* @(#)cdefs.h 8.1 (Berkeley) 6/2/93
|
* @(#)cdefs.h 8.1 (Berkeley) 6/2/93
|
||||||
* $Id: cdefs.h,v 1.2 2004/11/30 01:08:52 marka Exp $
|
* $Id: cdefs.h,v 1.3 2006/12/07 03:51:29 marka Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _CDEFS_H_
|
#ifndef _CDEFS_H_
|
||||||
@@ -105,10 +105,18 @@
|
|||||||
#define __STRING(x) "x"
|
#define __STRING(x) "x"
|
||||||
|
|
||||||
#ifndef __GNUC__
|
#ifndef __GNUC__
|
||||||
|
#ifndef __const
|
||||||
#define __const /* delete pseudo-ANSI C keywords */
|
#define __const /* delete pseudo-ANSI C keywords */
|
||||||
|
#endif
|
||||||
|
#ifndef __inline
|
||||||
#define __inline
|
#define __inline
|
||||||
|
#endif
|
||||||
|
#ifndef __signed
|
||||||
#define __signed
|
#define __signed
|
||||||
|
#endif
|
||||||
|
#ifndef __volatile
|
||||||
#define __volatile
|
#define __volatile
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
* In non-ANSI C environments, new programs will want ANSI-only C keywords
|
* In non-ANSI C environments, new programs will want ANSI-only C keywords
|
||||||
* deleted from the program and old programs will want them left alone.
|
* deleted from the program and old programs will want them left alone.
|
||||||
|
Reference in New Issue
Block a user