mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
hp cleanup
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(LINT) && !defined(CODECENTER)
|
#if !defined(LINT) && !defined(CODECENTER)
|
||||||
static const char rcsid[] = "$Id: getprotoent.c,v 1.1 2001/03/29 06:31:47 marka Exp $";
|
static const char rcsid[] = "$Id: getprotoent.c,v 1.2 2001/06/27 12:29:38 marka Exp $";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Imports */
|
/* Imports */
|
||||||
@@ -33,6 +33,7 @@ static const char rcsid[] = "$Id: getprotoent.c,v 1.1 2001/03/29 06:31:47 marka
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <resolv.h>
|
#include <resolv.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <irs.h>
|
#include <irs.h>
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(LINT) && !defined(CODECENTER)
|
#if !defined(LINT) && !defined(CODECENTER)
|
||||||
static const char rcsid[] = "$Id: getservent.c,v 1.1 2001/03/29 06:31:47 marka Exp $";
|
static const char rcsid[] = "$Id: getservent.c,v 1.2 2001/06/27 12:29:40 marka Exp $";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Imports */
|
/* Imports */
|
||||||
@@ -33,6 +33,7 @@ static const char rcsid[] = "$Id: getservent.c,v 1.1 2001/03/29 06:31:47 marka E
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <resolv.h>
|
#include <resolv.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <irs.h>
|
#include <irs.h>
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#ifndef LINT
|
#ifndef LINT
|
||||||
static const char rcsid[] = "$Id: tree.c,v 1.1 2001/03/29 06:31:55 marka Exp $";
|
static const char rcsid[] = "$Id: tree.c,v 1.2 2001/06/27 12:29:41 marka Exp $";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -101,7 +101,7 @@ tree_init(tree **ppr_tree) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tree_t
|
tree_t
|
||||||
tree_srch(tree **ppr_tree, int (*pfi_compare)(), tree_t p_user) {
|
tree_srch(tree **ppr_tree, int (*pfi_compare)(tree_t, tree_t), tree_t p_user) {
|
||||||
ENTER("tree_srch")
|
ENTER("tree_srch")
|
||||||
|
|
||||||
if (*ppr_tree) {
|
if (*ppr_tree) {
|
||||||
@@ -128,7 +128,7 @@ tree_srch(tree **ppr_tree, int (*pfi_compare)(), tree_t p_user) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tree_t
|
tree_t
|
||||||
tree_add(tree **ppr_tree, int (*pfi_compare)(),
|
tree_add(tree **ppr_tree, int (*pfi_compare)(tree_t, tree_t),
|
||||||
tree_t p_user, void (*pfv_uar)())
|
tree_t p_user, void (*pfv_uar)())
|
||||||
{
|
{
|
||||||
int i_balance = FALSE;
|
int i_balance = FALSE;
|
||||||
@@ -140,7 +140,7 @@ tree_add(tree **ppr_tree, int (*pfi_compare)(),
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
tree_delete(tree **ppr_p, int (*pfi_compare)(),
|
tree_delete(tree **ppr_p, int (*pfi_compare)(tree_t, tree_t),
|
||||||
tree_t p_user, void (*pfv_uar)())
|
tree_t p_user, void (*pfv_uar)())
|
||||||
{
|
{
|
||||||
int i_balance = FALSE, i_uar_called = FALSE;
|
int i_balance = FALSE, i_uar_called = FALSE;
|
||||||
@@ -151,7 +151,7 @@ tree_delete(tree **ppr_p, int (*pfi_compare)(),
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
tree_trav(tree **ppr_tree, int (*pfi_uar)()) {
|
tree_trav(tree **ppr_tree, int (*pfi_uar)(tree_t)) {
|
||||||
ENTER("tree_trav")
|
ENTER("tree_trav")
|
||||||
|
|
||||||
if (!*ppr_tree)
|
if (!*ppr_tree)
|
||||||
@@ -167,7 +167,7 @@ tree_trav(tree **ppr_tree, int (*pfi_uar)()) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
tree_mung(tree **ppr_tree, void (*pfv_uar)()) {
|
tree_mung(tree **ppr_tree, void (*pfv_uar)(tree_t)) {
|
||||||
ENTER("tree_mung")
|
ENTER("tree_mung")
|
||||||
if (*ppr_tree) {
|
if (*ppr_tree) {
|
||||||
tree_mung(&(**ppr_tree).left, pfv_uar);
|
tree_mung(&(**ppr_tree).left, pfv_uar);
|
||||||
@@ -182,7 +182,7 @@ tree_mung(tree **ppr_tree, void (*pfv_uar)()) {
|
|||||||
|
|
||||||
static tree *
|
static tree *
|
||||||
sprout(tree **ppr, tree_t p_data, int *pi_balance,
|
sprout(tree **ppr, tree_t p_data, int *pi_balance,
|
||||||
int (*pfi_compare)(), void (*pfv_delete)())
|
int (*pfi_compare)(tree_t, tree_t), void (*pfv_delete)(tree_t))
|
||||||
{
|
{
|
||||||
tree *p1, *p2, *sub;
|
tree *p1, *p2, *sub;
|
||||||
int cmp;
|
int cmp;
|
||||||
@@ -335,8 +335,8 @@ sprout(tree **ppr, tree_t p_data, int *pi_balance,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
delete(tree **ppr_p, int (*pfi_compare)(), tree_t p_user,
|
delete(tree **ppr_p, int (*pfi_compare)(tree_t, tree_t), tree_t p_user,
|
||||||
void (*pfv_uar)(), int *pi_balance, int *pi_uar_called)
|
void (*pfv_uar)(tree_t), int *pi_balance, int *pi_uar_called)
|
||||||
{
|
{
|
||||||
tree *pr_q;
|
tree *pr_q;
|
||||||
int i_comp, i_ret;
|
int i_comp, i_ret;
|
||||||
@@ -390,7 +390,7 @@ delete(tree **ppr_p, int (*pfi_compare)(), tree_t p_user,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
del(tree **ppr_r, int *pi_balance, tree **ppr_q,
|
del(tree **ppr_r, int *pi_balance, tree **ppr_q,
|
||||||
void (*pfv_uar)(), int *pi_uar_called)
|
void (*pfv_uar)(tree_t), int *pi_uar_called)
|
||||||
{
|
{
|
||||||
ENTER("del")
|
ENTER("del")
|
||||||
|
|
||||||
|
@@ -179,10 +179,6 @@ char * strsep(char **stringp, const char *delim);
|
|||||||
#define ALIGN(p) (((unsigned int)(p) + (sizeof(int) - 1)) & ~(sizeof(int) - 1))
|
#define ALIGN(p) (((unsigned int)(p) + (sizeof(int) - 1)) & ~(sizeof(int) - 1))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* forward declarations */
|
|
||||||
struct group;
|
|
||||||
struct passwd;
|
|
||||||
|
|
||||||
#ifdef NEED_SETGROUPENT
|
#ifdef NEED_SETGROUPENT
|
||||||
int setgroupent(int stayopen);
|
int setgroupent(int stayopen);
|
||||||
#endif
|
#endif
|
||||||
@@ -298,8 +294,6 @@ int setpassent(int stayopen);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define gettimeofday isc__gettimeofday
|
#define gettimeofday isc__gettimeofday
|
||||||
struct timeval; /* silence warning */
|
|
||||||
struct timezone; /* silence warning */
|
|
||||||
int isc__gettimeofday(struct timeval *tp, struct timezone *tzp);
|
int isc__gettimeofday(struct timeval *tp, struct timezone *tzp);
|
||||||
|
|
||||||
int getnetgrent(const char **machinep, const char **userp,
|
int getnetgrent(const char **machinep, const char **userp,
|
||||||
|
@@ -1,6 +1,12 @@
|
|||||||
#ifndef port_before_h
|
#ifndef port_before_h
|
||||||
#define port_before_h
|
#define port_before_h
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
struct group; /* silence warning */
|
||||||
|
struct passwd; /* silence warning */
|
||||||
|
struct timeval; /* silence warning */
|
||||||
|
struct timezone; /* silence warning */
|
||||||
|
|
||||||
#ifdef HAVE_SYS_TIMERS_H
|
#ifdef HAVE_SYS_TIMERS_H
|
||||||
#include <sys/timers.h>
|
#include <sys/timers.h>
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user