2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 15:05:23 +00:00

const correctness

This commit is contained in:
Andreas Gustafsson
2002-02-11 18:19:26 +00:00
parent 28d8b4118d
commit 28e509b145
4 changed files with 8 additions and 8 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: netaddr.h,v 1.18 2001/03/26 21:33:06 bwelling Exp $ */ /* $Id: netaddr.h,v 1.19 2002/02/11 18:19:25 gson Exp $ */
#ifndef ISC_NETADDR_H #ifndef ISC_NETADDR_H
#define ISC_NETADDR_H 1 #define ISC_NETADDR_H 1
@@ -72,7 +72,7 @@ isc_netaddr_totext(const isc_netaddr_t *netaddr, isc_buffer_t *target);
*/ */
void void
isc_netaddr_format(isc_netaddr_t *na, char *array, unsigned int size); isc_netaddr_format(const isc_netaddr_t *na, char *array, unsigned int size);
/* /*
* Format a human-readable representation of the network address '*na' * Format a human-readable representation of the network address '*na'
* into the character array 'array', which is of size 'size'. * into the character array 'array', which is of size 'size'.

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: sockaddr.h,v 1.36 2001/10/02 06:06:13 marka Exp $ */ /* $Id: sockaddr.h,v 1.37 2002/02/11 18:19:26 gson Exp $ */
#ifndef ISC_SOCKADDR_H #ifndef ISC_SOCKADDR_H
#define ISC_SOCKADDR_H 1 #define ISC_SOCKADDR_H 1
@@ -160,7 +160,7 @@ isc_sockaddr_totext(const isc_sockaddr_t *sockaddr, isc_buffer_t *target);
*/ */
void void
isc_sockaddr_format(isc_sockaddr_t *sa, char *array, unsigned int size); isc_sockaddr_format(const isc_sockaddr_t *sa, char *array, unsigned int size);
/* /*
* Format a human-readable representation of the socket address '*sa' * Format a human-readable representation of the socket address '*sa'
* into the character array 'array', which is of size 'size'. * into the character array 'array', which is of size 'size'.

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: netaddr.c,v 1.19 2001/11/27 01:56:04 gson Exp $ */ /* $Id: netaddr.c,v 1.20 2002/02/11 18:19:22 gson Exp $ */
#include <config.h> #include <config.h>
@@ -133,7 +133,7 @@ isc_netaddr_totext(const isc_netaddr_t *netaddr, isc_buffer_t *target) {
} }
void void
isc_netaddr_format(isc_netaddr_t *na, char *array, unsigned int size) { isc_netaddr_format(const isc_netaddr_t *na, char *array, unsigned int size) {
isc_result_t result; isc_result_t result;
isc_buffer_t buf; isc_buffer_t buf;

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: sockaddr.c,v 1.51 2001/11/27 01:56:06 gson Exp $ */ /* $Id: sockaddr.c,v 1.52 2002/02/11 18:19:24 gson Exp $ */
#include <config.h> #include <config.h>
@@ -154,7 +154,7 @@ isc_sockaddr_totext(const isc_sockaddr_t *sockaddr, isc_buffer_t *target) {
} }
void void
isc_sockaddr_format(isc_sockaddr_t *sa, char *array, unsigned int size) { isc_sockaddr_format(const isc_sockaddr_t *sa, char *array, unsigned int size) {
isc_result_t result; isc_result_t result;
isc_buffer_t buf; isc_buffer_t buf;