[Git][NTPsec/ntpsec][master] More boolification.

Eric S. Raymond gitlab at mg.gitlab.com
Wed Feb 10 20:14:50 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
d4cf8648 by Eric S. Raymond at 2016-02-10T15:14:33-05:00
More boolification.

- - - - -


1 changed file:

- ntpd/ntp_io.c


Changes:

=====================================
ntpd/ntp_io.c
=====================================
--- a/ntpd/ntp_io.c
+++ b/ntpd/ntp_io.c
@@ -275,7 +275,7 @@ static  bool	addr_samesubnet	(const sockaddr_u *, const sockaddr_u *,
 static	int	create_sockets	(u_short);
 static	SOCKET	open_socket	(sockaddr_u *, int, int, endpt *);
 static	char *	fdbits		(int, fd_set *);
-static	void	set_reuseaddr	(int);
+static	void	set_reuseaddr	(bool);
 static	bool	socket_broadcast_enable	 (struct interface *, SOCKET, sockaddr_u *);
 #ifdef  OS_MISSES_SPECIFIC_ROUTE_UPDATES
 static	bool	socket_broadcast_disable (struct interface *, sockaddr_u *);
@@ -2080,7 +2080,7 @@ create_sockets(
 	 * Now that we have opened all the sockets, turn off the reuse
 	 * flag for security.
 	 */
-	set_reuseaddr(0);
+	set_reuseaddr(false);
 
 	DPRINTF(2, ("create_sockets: Total interfaces = %d\n", ninterfaces));
 
@@ -2235,7 +2235,7 @@ set_excladdruse(
  */
 static void
 set_reuseaddr(
-	int flag
+	bool flag
 	)
 {
 #ifndef SO_EXCLUSIVEADDRUSE



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/d4cf864894037043831734fa7d9f58482bfe9049
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160210/73171b27/attachment.html>


More information about the vc mailing list