1
0
mirror of https://frontier.innolan.net/rainlance/amiga-ntimed.git synced 2025-11-22 14:20:49 +00:00

A bit of signed/unsigned cleanup work.

This commit is contained in:
Poul-Henning Kamp
2015-01-16 21:21:15 +00:00
parent 76ccc26b27
commit 449dc16d47
10 changed files with 49 additions and 46 deletions

View File

@ -106,7 +106,7 @@ NTP_Peer_Poll(struct ocx *ocx, const struct udp_socket *usc,
const struct ntp_peer *np, double tmo)
{
char buf[100];
ssize_t len;
size_t len;
struct sockaddr_storage rss;
socklen_t rssl;
ssize_t l;
@ -121,7 +121,7 @@ NTP_Peer_Poll(struct ocx *ocx, const struct udp_socket *usc,
len = NTP_Packet_Pack(buf, sizeof buf, np->tx_pkt);
l = Udp_Send(ocx, usc, np->sa, np->sa_len, buf, len);
if (l != len) {
if (l != (ssize_t)len) {
Debug(ocx, "Tx peer %s %s got %zd (%s)\n",
np->hostname, np->ip, l, strerror(errno));
return (0);