diff options
author | Ted Lemon <source@isc.org> | 1997-06-08 03:18:09 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1997-06-08 03:18:09 +0000 |
commit | 4595a58c251248b3f001ec729b6c0747ea0b73d6 (patch) | |
tree | 00f0394a6c5abc3b48770ddc9e44d94ee29577a3 /common | |
parent | c4036bb39555a1fff1e2879a2db58c36040d5064 (diff) | |
download | isc-dhcp-4595a58c251248b3f001ec729b6c0747ea0b73d6.tar.gz |
size_t -> ssize_t in return values where < 0 == error
Diffstat (limited to 'common')
-rw-r--r-- | common/bpf.c | 6 | ||||
-rw-r--r-- | common/nit.c | 6 | ||||
-rw-r--r-- | common/print.c | 4 | ||||
-rw-r--r-- | common/socket.c | 6 | ||||
-rw-r--r-- | common/upf.c | 6 |
5 files changed, 14 insertions, 14 deletions
diff --git a/common/bpf.c b/common/bpf.c index d223a9f8..2f44dc3a 100644 --- a/common/bpf.c +++ b/common/bpf.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: bpf.c,v 1.17 1997/02/26 05:20:52 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: bpf.c,v 1.18 1997/06/08 03:18:07 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -240,7 +240,7 @@ void if_register_receive (info) #endif /* USE_BPF_RECEIVE */ #ifdef USE_BPF_SEND -size_t send_packet (interface, packet, raw, len, from, to, hto) +ssize_t send_packet (interface, packet, raw, len, from, to, hto) struct interface_info *interface; struct packet *packet; struct dhcp_packet *raw; @@ -270,7 +270,7 @@ size_t send_packet (interface, packet, raw, len, from, to, hto) #endif /* USE_BPF_SEND */ #ifdef USE_BPF_RECEIVE -size_t receive_packet (interface, buf, len, from, hfrom) +ssize_t receive_packet (interface, buf, len, from, hfrom) struct interface_info *interface; unsigned char *buf; size_t len; diff --git a/common/nit.c b/common/nit.c index 4c84f8ba..20ffacd6 100644 --- a/common/nit.c +++ b/common/nit.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: nit.c,v 1.13 1997/02/26 05:20:53 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: nit.c,v 1.14 1997/06/08 03:18:07 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -246,7 +246,7 @@ void if_register_receive (info) #endif /* USE_NIT_RECEIVE */ #ifdef USE_NIT_SEND -size_t send_packet (interface, packet, raw, len, from, to, hto) +ssize_t send_packet (interface, packet, raw, len, from, to, hto) struct interface_info *interface; struct packet *packet; struct dhcp_packet *raw; @@ -297,7 +297,7 @@ size_t send_packet (interface, packet, raw, len, from, to, hto) #endif /* USE_NIT_SEND */ #ifdef USE_NIT_RECEIVE -size_t receive_packet (interface, buf, len, from, hfrom) +ssize_t receive_packet (interface, buf, len, from, hfrom) struct interface_info *interface; unsigned char *buf; size_t len; diff --git a/common/print.c b/common/print.c index f9b814f3..24da045b 100644 --- a/common/print.c +++ b/common/print.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: print.c,v 1.14 1997/06/02 22:32:37 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: print.c,v 1.15 1997/06/08 03:18:08 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -61,7 +61,7 @@ char *print_hw_addr (htype, hlen, data) } else { s = habuf; for (i = 0; i < hlen; i++) { - sprintf (s, "%x", data [i]); + sprintf (s, "%2.2x", data [i]); s += strlen (s); *s++ = ':'; } diff --git a/common/socket.c b/common/socket.c index bd9b49a5..a68a502c 100644 --- a/common/socket.c +++ b/common/socket.c @@ -50,7 +50,7 @@ #ifndef lint static char copyright[] = -"$Id: socket.c,v 1.24 1997/03/29 03:19:02 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: socket.c,v 1.25 1997/06/08 03:18:08 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -184,7 +184,7 @@ void if_register_receive (info) #endif /* USE_SOCKET_RECEIVE */ #ifdef USE_SOCKET_SEND -size_t send_packet (interface, packet, raw, len, from, to, hto) +ssize_t send_packet (interface, packet, raw, len, from, to, hto) struct interface_info *interface; struct packet *packet; struct dhcp_packet *raw; @@ -212,7 +212,7 @@ size_t send_packet (interface, packet, raw, len, from, to, hto) #endif /* USE_SOCKET_SEND */ #ifdef USE_SOCKET_RECEIVE -size_t receive_packet (interface, buf, len, from, hfrom) +ssize_t receive_packet (interface, buf, len, from, hfrom) struct interface_info *interface; unsigned char *buf; size_t len; diff --git a/common/upf.c b/common/upf.c index dd666aa3..d5e27cc5 100644 --- a/common/upf.c +++ b/common/upf.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: upf.c,v 1.1 1997/03/05 06:09:04 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: upf.c,v 1.2 1997/06/08 03:18:09 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -217,7 +217,7 @@ void if_register_receive (info) #endif /* USE_UPF_RECEIVE */ #ifdef USE_UPF_SEND -size_t send_packet (interface, packet, raw, len, from, to, hto) +ssize_t send_packet (interface, packet, raw, len, from, to, hto) struct interface_info *interface; struct packet *packet; struct dhcp_packet *raw; @@ -247,7 +247,7 @@ size_t send_packet (interface, packet, raw, len, from, to, hto) #endif /* USE_UPF_SEND */ #ifdef USE_UPF_RECEIVE -size_t receive_packet (interface, buf, len, from, hfrom) +ssize_t receive_packet (interface, buf, len, from, hfrom) struct interface_info *interface; unsigned char *buf; size_t len; |