[Git][NTPsec/ntpsec][master] More cruft cleanup: remove #undef _GNU_SOURCE from msyslog.c

Hal Murray gitlab at mg.gitlab.com
Fri Oct 4 21:32:12 UTC 2019



Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
aa95e57b by Hal Murray at 2019-10-04T21:30:09Z
More cruft cleanup: remove #undef _GNU_SOURCE from msyslog.c

-#undef _GNU_SOURCE
-#include <string.h>

This was useless because string.h was already included
by ntp_stdlib.h a few lines above.

- - - - -


1 changed file:

- libntp/msyslog.c


Changes:

=====================================
libntp/msyslog.c
=====================================
@@ -10,6 +10,7 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <stdio.h>
+#include <string.h>
 
 #include "ntp.h"
 #include "ntp_debug.h"
@@ -17,12 +18,6 @@
 #include "ntp_syslog.h"
 #include "lib_strbuf.h"
 
-/* Use XSI-compliant strerror_r(3), prototype in string.h.
- * Don't try moving this further up, else hilarity will ensue...
- */
-#undef _GNU_SOURCE
-#include <string.h>
-
 /* start out with syslog and stderr, otherwise startup errors lost */
 bool    syslogit = true;        /* log messages to syslog */
 bool    termlogit = true;       /* duplicate to stdout/err */



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/aa95e57ba0ef820e8c8898952dcde9d695da7f5b

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/aa95e57ba0ef820e8c8898952dcde9d695da7f5b
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20191004/112996f9/attachment.htm>


More information about the vc mailing list