Commit d1f313b3 authored by Ted Lemon's avatar Ted Lemon
Browse files

socklen_t -> SOCKLEN_T

parent 6326bebf
......@@ -22,7 +22,7 @@
#ifndef lint
static char copyright[] =
"$Id: dns.c,v 1.15 2000/02/01 03:19:38 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n";
"$Id: dns.c,v 1.16 2000/02/03 03:43:51 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
......@@ -444,7 +444,7 @@ void dns_packet (protocol)
u_int16_t class;
TIME ttl;
u_int16_t rdlength;
socklen_t len;
SOCKLEN_T len;
int status;
int i;
struct dns_query *query;
......
......@@ -23,7 +23,7 @@
#ifndef lint
static char copyright[] =
"$Id: icmp.c,v 1.20 2000/02/01 18:25:07 mellon Exp $ Copyright (c) 1997, 1998 The Internet Software Consortium. All rights reserved.\n";
"$Id: icmp.c,v 1.21 2000/02/03 03:43:51 mellon Exp $ Copyright (c) 1997, 1998 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
......@@ -163,7 +163,7 @@ isc_result_t icmp_echoreply (h)
struct sockaddr_in from;
unsigned char icbuf [1500];
int status;
socklen_t sl;
SOCKLEN_T sl;
int hlen, len;
struct iaddr ia;
struct icmp_state *state;
......
......@@ -30,7 +30,7 @@
#ifndef lint
static char copyright[] =
"$Id: socket.c,v 1.44 2000/02/01 03:19:39 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
"$Id: socket.c,v 1.45 2000/02/03 03:43:51 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
......@@ -213,7 +213,7 @@ ssize_t receive_packet (interface, buf, len, from, hfrom)
struct sockaddr_in *from;
struct hardware *hfrom;
{
socklen_t flen = sizeof *from;
SOCKLEN_T flen = sizeof *from;
int result;
#ifdef IGNORE_HOSTUNREACH
......@@ -240,7 +240,7 @@ isc_result_t fallback_discard (object)
{
char buf [1540];
struct sockaddr_in from;
socklen_t flen = sizeof from;
SOCKLEN_T flen = sizeof from;
int status;
struct interface_info *interface;
......
......@@ -70,7 +70,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
static const char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93";
static const char rcsid[] = "$Id: res_send.c,v 1.2 2000/02/02 19:59:16 mellon Exp $";
static const char rcsid[] = "$Id: res_send.c,v 1.3 2000/02/03 03:43:50 mellon Exp $";
#endif /* LIBC_SCCS and not lint */
/*
......@@ -312,7 +312,7 @@ res_nsend(res_state statp,
if (statp->_sock >= 0 &&
(statp->_flags & RES_F_VC) != 0) {
struct sockaddr_in peer;
socklen_t size = sizeof(peer);
SOCKLEN_T size = sizeof(peer);
if (getpeername(statp->_sock,
(struct sockaddr *)&peer,
......@@ -478,7 +478,7 @@ res_nsend(res_state statp,
int start, timeout, finish;
fd_set dsmask;
struct sockaddr_in from;
socklen_t fromlen;
SOCKLEN_T fromlen;
int seconds;
if (statp->_sock < 0 ||
......@@ -558,7 +558,7 @@ res_nsend(res_state statp,
sizeof no_addr);
#else
struct sockaddr_in local_addr;
socklen_t len;
SOCKLEN_T len;
int result, s1;
len = sizeof(local_addr);
......
......@@ -32,7 +32,7 @@ isc_result_t omapi_connect (omapi_object_t *c,
isc_result_t status;
omapi_connection_object_t *obj;
int flag;
socklen_t sl;
SOCKLEN_T sl;
obj = (omapi_connection_object_t *)dmalloc (sizeof *obj, MDL);
if (!obj)
......
......@@ -125,7 +125,7 @@ int omapi_listener_readfd (omapi_object_t *h)
isc_result_t omapi_accept (omapi_object_t *h)
{
isc_result_t status;
socklen_t len;
SOCKLEN_T len;
omapi_connection_object_t *obj;
omapi_listener_object_t *listener;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment