[Git][NTPsec/ntpsec][master] Remove unused fields in the recvbuf structure.
Eric S. Raymond
gitlab at mg.gitlab.com
Sun Dec 6 12:42:26 UTC 2015
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
73f252f1 by Eric S. Raymond at 2015-12-06T07:42:00Z
Remove unused fields in the recvbuf structure.
- - - - -
2 changed files:
- include/recvbuff.h
- ntpd/ntp_io.c
Changes:
=====================================
include/recvbuff.h
=====================================
--- a/include/recvbuff.h
+++ b/include/recvbuff.h
@@ -50,11 +50,9 @@ struct recvbuf {
recvbuf_t * link; /* next in list */
union {
sockaddr_u X_recv_srcadr;
- void * X_recv_srcclock;
struct peer * X_recv_peer;
} X_from_where;
#define recv_srcadr X_from_where.X_recv_srcadr
-#define recv_srcclock X_from_where.X_recv_srcclock
#define recv_peer X_from_where.X_recv_peer
#ifndef HAVE_IO_COMPLETION_PORT
sockaddr_u srcadr; /* where packet came from */
@@ -63,7 +61,6 @@ struct recvbuf {
#endif
endpt * dstadr; /* address pkt arrived on */
SOCKET fd; /* fd on which it was received */
- int msg_flags; /* Flags received about the packet */
l_fp recv_time; /* time of arrival */
void (*receiver)(struct recvbuf *); /* callback */
size_t recv_length; /* number of octets received */
=====================================
ntpd/ntp_io.c
=====================================
--- a/ntpd/ntp_io.c
+++ b/ntpd/ntp_io.c
@@ -3486,7 +3486,6 @@ read_network_packet(
msghdr.msg_iovlen = 1;
msghdr.msg_control = (void *)&control;
msghdr.msg_controllen = sizeof(control);
- msghdr.msg_flags = 0;
rb->recv_length = recvmsg(fd, &msghdr, 0);
#endif
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/73f252f1a5e7e840d2a7f346d0a8e6191bb2a814
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20151206/b6e55a43/attachment.html>
More information about the vc
mailing list