|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: ntp_msg.c,v 1.20 2015/01/09 07:35:37 deraadt Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: ntp_msg.c,v 1.21 2015/02/10 06:01:01 bcook Exp $ */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
@ -62,7 +62,7 @@ ntp_sendmsg(int fd, struct sockaddr *sa, struct ntp_msg *msg) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (n != sizeof(*msg)) { |
|
|
if (n != sizeof(*msg)) { |
|
|
log_warnx("ntp_sendmsg: only %ld of %ld bytes sent", n, |
|
|
|
|
|
|
|
|
log_warnx("ntp_sendmsg: only %zd of %zu bytes sent", n, |
|
|
sizeof(*msg)); |
|
|
sizeof(*msg)); |
|
|
return (-1); |
|
|
return (-1); |
|
|
} |
|
|
} |
|
|