Portable build framework for OpenNTPD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.0 KiB

  1. From 47a111a45a541316d7ff9d844362b901f24f41e1 Mon Sep 17 00:00:00 2001
  2. From: Brent Cook <busterb@gmail.com>
  3. Date: Wed, 31 Dec 2014 08:47:45 -0600
  4. Subject: [PATCH 12/12] don't be too stingy on braces
  5. Match if bracing of the block below it to improve readability.
  6. ---
  7. src/usr.sbin/ntpd/client.c | 3 ++-
  8. 1 file changed, 2 insertions(+), 1 deletion(-)
  9. diff --git a/src/usr.sbin/ntpd/client.c b/src/usr.sbin/ntpd/client.c
  10. index 0271068..4bfbf90 100644
  11. --- a/src/usr.sbin/ntpd/client.c
  12. +++ b/src/usr.sbin/ntpd/client.c
  13. @@ -139,7 +139,7 @@ client_query(struct ntp_peer *p)
  14. struct sockaddr *sa = (struct sockaddr *)&p->addr->ss;
  15. p->query->fd = socket(p->addr->ss.ss_family, SOCK_DGRAM, 0);
  16. - if (p->query->fd == -1)
  17. + if (p->query->fd == -1) {
  18. if (errno == EAFNOSUPPORT) {
  19. log_warn("client_query socket");
  20. client_nextaddr(p);
  21. @@ -147,6 +147,7 @@ client_query(struct ntp_peer *p)
  22. return (-1);
  23. } else
  24. fatal("client_query socket");
  25. + }
  26. #ifdef SO_RTABLE
  27. if (p->rtable != -1 &&
  28. --
  29. 1.9.1