From 5a70ee793522df618b613fd2535b4e039b71ddd3 Mon Sep 17 00:00:00 2001 From: Remco Rijnders Date: Wed, 22 Aug 2012 18:17:38 +0200 Subject: [PATCH] Remove shipped inet.h file and use system version instead --- include/inet.h | 49 ------------------------------------------------- src/res.c | 2 +- src/s_bsd.c | 3 +-- src/s_conf.c | 2 +- src/s_ping.c | 3 --- 5 files changed, 3 insertions(+), 56 deletions(-) delete mode 100644 include/inet.h diff --git a/include/inet.h b/include/inet.h deleted file mode 100644 index 955f907..0000000 --- a/include/inet.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) 1983 Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms are permitted - * provided that: (1) source distributions retain this entire copyright - * notice and comment, and (2) distributions including binaries display - * the following acknowledgement: ``This product includes software - * developed by the University of California, Berkeley and its contributors'' - * in the documentation or other materials provided with the distribution - * and in all advertising materials mentioning features or use of this - * software. Neither the name of the University nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. - * - * @(#)inet.h 5.4 (Berkeley) 6/1/90 - */ - -/* External definitions for functions in inet(3) */ -#include "config.h" /* for system definitions */ - -#ifdef __alpha -#define __u_l unsigned int -#else -#define __u_l unsigned long -#endif - -#ifdef __STDC__ -extern __u_l inet_addr(char *); -extern char *inet_ntoa(char *); -extern __u_l inet_netof (struct in_addr); -extern __u_l inet_makeaddr(int , int); -extern __u_l inet_network(char *); -extern __u_l inet_lnaof(struct in_addr); -#else -extern __u_l inet_addr(); -extern char *inet_ntoa(); -#ifndef HPUX -extern __u_l inet_makeaddr(); -#endif -#endif -#ifndef HPUX -extern __u_l inet_network(); -extern __u_l inet_lnaof(); -#endif -#undef __u_l diff --git a/src/res.c b/src/res.c index 23f4faf..6f29771 100644 --- a/src/res.c +++ b/src/res.c @@ -19,7 +19,7 @@ #include #include #include -#include "inet.h" /* inet_addr() */ +//#include "inet.h" /* inet_addr() */ #undef DEBUG /* because there is a lot of debug code in here :-) */ diff --git a/src/s_bsd.c b/src/s_bsd.c index 909db82..642eaa9 100644 --- a/src/s_bsd.c +++ b/src/s_bsd.c @@ -32,11 +32,10 @@ #if (!defined(SVR3) || defined(sgi) || defined(_SEQUENT_)) #include #endif -#include "inet.h" +#include #include #include #include -//#include "nameser.h" #include #include "sock.h" /* If FD_ZERO isn't define up to this point, */ /* define it (BSD4.2 needs this) */ diff --git a/src/s_conf.c b/src/s_conf.c index 8e6337b..56a4367 100644 --- a/src/s_conf.c +++ b/src/s_conf.c @@ -36,7 +36,7 @@ #include #include #include -#include "inet.h" +#include #include "h.h" #define debug 1 diff --git a/src/s_ping.c b/src/s_ping.c index a0423ce..f50ac1d 100644 --- a/src/s_ping.c +++ b/src/s_ping.c @@ -25,9 +25,6 @@ #include #include #include -#if defined(__hpux) -#include "inet.h" -#endif #include #include "sock.h" /* If FD_ZERO isn't defined up to this point, */ /* define it (BSD4.2 needs this) */ -- 2.30.2