[Git][NTPsec/ntpsec][master] Boolification.
Eric S. Raymond
gitlab at mg.gitlab.com
Sat Feb 13 14:47:11 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
73ec6f78 by Eric S. Raymond at 2016-02-13T09:46:55-05:00
Boolification.
- - - - -
1 changed file:
- ntpd/ntp_io.c
Changes:
=====================================
ntpd/ntp_io.c
=====================================
--- a/ntpd/ntp_io.c
+++ b/ntpd/ntp_io.c
@@ -273,7 +273,7 @@ static bool addr_eqprefix (const sockaddr_u *, const sockaddr_u *,
static bool addr_samesubnet (const sockaddr_u *, const sockaddr_u *,
const sockaddr_u *, const sockaddr_u *);
static int create_sockets (u_short);
-static SOCKET open_socket (sockaddr_u *, int, int, endpt *);
+static SOCKET open_socket (sockaddr_u *, bool, bool, endpt *);
static char * fdbits (int, fd_set *);
static void set_reuseaddr (bool);
static bool socket_broadcast_enable (struct interface *, SOCKET, sockaddr_u *);
@@ -2872,8 +2872,8 @@ io_multicast_del(
static SOCKET
open_socket(
sockaddr_u * addr,
- int bcast,
- int turn_off_reuse,
+ bool bcast,
+ bool turn_off_reuse,
endpt * interf
)
{
@@ -2883,8 +2883,8 @@ open_socket(
* int is OK for REUSEADR per
* http://www.kohala.com/start/mcast.api.txt
*/
- int on = 1;
- int off = 0;
+ const int on = 1;
+ const int off = 0;
if (IS_IPV6(addr) && !ipv6_works)
return INVALID_SOCKET;
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/73ec6f78f8f90e05172e3b3cdcc2d0bda07b63f8
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160213/028e7482/attachment.html>
More information about the vc
mailing list