mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-03 15:56:00 +00:00
size_t -> ssize_t in return values where < 0 == error
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: packet.c,v 1.17 1997/05/09 08:07:33 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
|
"$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";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -216,7 +216,7 @@ void assemble_udp_ip_header (interface, buf, bufix,
|
|||||||
/* Decode a hardware header... */
|
/* Decode a hardware header... */
|
||||||
/* XXX currently only supports ethernet; doesn't check for other types. */
|
/* XXX currently only supports ethernet; doesn't check for other types. */
|
||||||
|
|
||||||
size_t decode_hw_header (interface, buf, bufix, from)
|
ssize_t decode_hw_header (interface, buf, bufix, from)
|
||||||
struct interface_info *interface;
|
struct interface_info *interface;
|
||||||
unsigned char *buf;
|
unsigned char *buf;
|
||||||
int bufix;
|
int bufix;
|
||||||
@@ -239,7 +239,7 @@ size_t decode_hw_header (interface, buf, bufix, from)
|
|||||||
|
|
||||||
/* UDP header and IP header decoded together for convenience. */
|
/* UDP header and IP header decoded together for convenience. */
|
||||||
|
|
||||||
size_t decode_udp_ip_header (interface, buf, bufix, from, data, len)
|
ssize_t decode_udp_ip_header (interface, buf, bufix, from, data, len)
|
||||||
struct interface_info *interface;
|
struct interface_info *interface;
|
||||||
unsigned char *buf;
|
unsigned char *buf;
|
||||||
int bufix;
|
int bufix;
|
||||||
|
Reference in New Issue
Block a user