mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-03 15:56:00 +00:00
Declare arguments that can be promoted so that the compiler's behaviour doesn't change depending on whether or not it follows ANSI.
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
can't be assumed to be aligned. */
|
can't be assumed to be aligned. */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995, 1996 The Internet Software Consortium.
|
* Copyright (c) 1995, 1996, 1998 The Internet Software Consortium.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: convert.c,v 1.4 1997/05/09 07:58:33 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: convert.c,v 1.5 1998/03/16 06:09:32 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -102,7 +102,7 @@ void putLong (obuf, val)
|
|||||||
|
|
||||||
void putUShort (obuf, val)
|
void putUShort (obuf, val)
|
||||||
unsigned char *obuf;
|
unsigned char *obuf;
|
||||||
u_int16_t val;
|
u_int32_t val;
|
||||||
{
|
{
|
||||||
u_int16_t tmp = htons (val);
|
u_int16_t tmp = htons (val);
|
||||||
memcpy (obuf, &tmp, sizeof tmp);
|
memcpy (obuf, &tmp, sizeof tmp);
|
||||||
@@ -110,7 +110,7 @@ void putUShort (obuf, val)
|
|||||||
|
|
||||||
void putShort (obuf, val)
|
void putShort (obuf, val)
|
||||||
unsigned char *obuf;
|
unsigned char *obuf;
|
||||||
int16_t val;
|
int32_t val;
|
||||||
{
|
{
|
||||||
int16_t tmp = htons (val);
|
int16_t tmp = htons (val);
|
||||||
memcpy (obuf, &tmp, sizeof tmp);
|
memcpy (obuf, &tmp, sizeof tmp);
|
||||||
|
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: dispatch.c,v 1.47 1997/12/06 04:03:37 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: dispatch.c,v 1.48 1998/03/16 06:09:58 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -54,7 +54,7 @@ struct timeout *timeouts;
|
|||||||
static struct timeout *free_timeouts;
|
static struct timeout *free_timeouts;
|
||||||
static int interfaces_invalidated;
|
static int interfaces_invalidated;
|
||||||
void (*bootp_packet_handler) PROTO ((struct interface_info *,
|
void (*bootp_packet_handler) PROTO ((struct interface_info *,
|
||||||
unsigned char *, int, unsigned short,
|
unsigned char *, int, unsigned int,
|
||||||
struct iaddr, struct hardware *));
|
struct iaddr, struct hardware *));
|
||||||
|
|
||||||
static void got_one PROTO ((struct protocol *));
|
static void got_one PROTO ((struct protocol *));
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
Packet assembly code, originally contributed by Archie Cobbs. */
|
Packet assembly code, originally contributed by Archie Cobbs. */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995, 1996 The Internet Software Consortium.
|
* Copyright (c) 1995, 1996, 1998 The Internet Software Consortium.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: packet.c,v 1.18 1997/06/08 04:08:01 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: packet.c,v 1.19 1998/03/16 06:14:08 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -158,7 +158,7 @@ void assemble_udp_ip_header (interface, buf, bufix,
|
|||||||
int *bufix;
|
int *bufix;
|
||||||
u_int32_t from;
|
u_int32_t from;
|
||||||
u_int32_t to;
|
u_int32_t to;
|
||||||
u_int16_t port;
|
u_int32_t port;
|
||||||
unsigned char *data;
|
unsigned char *data;
|
||||||
int len;
|
int len;
|
||||||
{
|
{
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
DHCP/BOOTP Relay Agent. */
|
DHCP/BOOTP Relay Agent. */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 The Internet Software Consortium.
|
* Copyright (c) 1997, 1998 The Internet Software Consortium.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: dhcrelay.c,v 1.11 1998/03/15 21:07:11 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: dhcrelay.c,v 1.12 1998/03/16 06:16:54 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -229,7 +229,7 @@ void relay (ip, packbuf, length, from_port, from, hfrom)
|
|||||||
struct interface_info *ip;
|
struct interface_info *ip;
|
||||||
u_int8_t *packbuf;
|
u_int8_t *packbuf;
|
||||||
int length;
|
int length;
|
||||||
u_int16_t from_port;
|
unsigned int from_port;
|
||||||
struct iaddr from;
|
struct iaddr from;
|
||||||
struct hardware *hfrom;
|
struct hardware *hfrom;
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user