[Git][NTPsec/ntpsec][master] Address GitLab issue #253: Warnings with clang 8.0.0 on macOS 10.12.

Eric S. Raymond gitlab at mg.gitlab.com
Sat Mar 25 03:02:24 UTC 2017


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


Commits:
5fa35f79 by Eric S. Raymond at 2017-03-24T23:02:10-04:00
Address GitLab issue #253: Warnings with clang 8.0.0 on macOS 10.12.

- - - - -


1 changed file:

- ntpd/ntp_scanner.c


Changes:

=====================================
ntpd/ntp_scanner.c
=====================================
--- a/ntpd/ntp_scanner.c
+++ b/ntpd/ntp_scanner.c
@@ -49,7 +49,7 @@ static struct FILE_INFO * lex_stack = NULL;
 /* CONSTANTS AND MACROS
  * --------------------
  */
-#define CONF_ENABLE(s)	strcmp(s + strlen(s) - 5, ".ntpd") == 0
+#define CONF_ENABLE(s)	(strcmp(s + strlen(s) - 5, ".ntpd") == 0)
 
 
 /* SCANNER GLOBAL VARIABLES 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/5fa35f79da59c12be01bbcfa9f06387c4e9a6b55
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170325/077085d4/attachment.html>


More information about the vc mailing list