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.

38 lines
877 B

10 years ago
10 years ago
  1. From 48f06e1fee38cd2dafffe55bd94d14f23863c4ef Mon Sep 17 00:00:00 2001
  2. From: Brent Cook <busterb@gmail.com>
  3. Date: Tue, 30 Dec 2014 09:00:12 -0600
  4. Subject: [PATCH 11/16] Use LOG_NTP syslog facility.
  5. FreeBSD PR: 114191
  6. Submitted by: Robert Archer <freebsd@deathbeforedecaf.net>
  7. ---
  8. src/usr.sbin/ntpd/log.c | 6 +++++-
  9. 1 file changed, 5 insertions(+), 1 deletion(-)
  10. diff --git a/src/usr.sbin/ntpd/log.c b/src/usr.sbin/ntpd/log.c
  11. index 618f4cc..32575e8 100644
  12. --- a/src/usr.sbin/ntpd/log.c
  13. +++ b/src/usr.sbin/ntpd/log.c
  14. @@ -26,6 +26,10 @@
  15. #include "ntpd.h"
  16. +#ifndef LOG_NTP
  17. +#define LOG_NTP LOG_DAEMON
  18. +#endif
  19. +
  20. int debug;
  21. extern int debugsyslog;
  22. @@ -37,7 +41,7 @@ log_init(int n_debug)
  23. debug = n_debug;
  24. if (!debug)
  25. - openlog(__progname, LOG_PID | LOG_NDELAY, LOG_DAEMON);
  26. + openlog(__progname, LOG_PID | LOG_NDELAY, LOG_NTP);
  27. tzset();
  28. }
  29. --
  30. 1.9.1