2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

size_t -> ssize_t in return values where < 0 == error

This commit is contained in:
Ted Lemon
1997-06-08 04:08:01 +00:00
parent 732a90b290
commit 0cbc9e2382

View File

@@ -42,7 +42,7 @@
#ifndef lint
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 */
#include "dhcpd.h"
@@ -216,7 +216,7 @@ void assemble_udp_ip_header (interface, buf, bufix,
/* Decode a hardware header... */
/* 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;
unsigned char *buf;
int bufix;
@@ -239,7 +239,7 @@ size_t decode_hw_header (interface, buf, bufix, from)
/* 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;
unsigned char *buf;
int bufix;