Thu Sep 3 07:26:41 2020 UTC ()
remove unneeded newline in quotes variable string - keeps ntpq happy


(kardel)
diff -r1.22 -r1.23 src/external/bsd/ntp/dist/ntpd/refclock_parse.c

cvs diff -r1.22 -r1.23 src/external/bsd/ntp/dist/ntpd/refclock_parse.c (expand / switch to unified diff)

--- src/external/bsd/ntp/dist/ntpd/refclock_parse.c 2020/05/25 20:47:25 1.22
+++ src/external/bsd/ntp/dist/ntpd/refclock_parse.c 2020/09/03 07:26:41 1.23
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: refclock_parse.c,v 1.22 2020/05/25 20:47:25 christos Exp $ */ 1/* $NetBSD: refclock_parse.c,v 1.23 2020/09/03 07:26:41 kardel Exp $ */
2 2
3/* 3/*
4 * /src/NTP/REPOSITORY/ntp4-dev/ntpd/refclock_parse.c,v 4.81 2009/05/01 10:15:29 kardel RELEASE_20090105_A 4 * /src/NTP/REPOSITORY/ntp4-dev/ntpd/refclock_parse.c,v 4.81 2009/05/01 10:15:29 kardel RELEASE_20090105_A
5 * 5 *
6 * refclock_parse.c,v 4.81 2009/05/01 10:15:29 kardel RELEASE_20090105_A 6 * refclock_parse.c,v 4.81 2009/05/01 10:15:29 kardel RELEASE_20090105_A
7 * 7 *
8 * generic reference clock driver for several DCF/GPS/MSF/... receivers 8 * generic reference clock driver for several DCF/GPS/MSF/... receivers
9 * 9 *
10 * PPS notes: 10 * PPS notes:
11 * On systems that support PPSAPI (RFC2783) PPSAPI is the 11 * On systems that support PPSAPI (RFC2783) PPSAPI is the
12 * preferred interface. 12 * preferred interface.
13 * 13 *
14 * Optionally make use of a STREAMS module for input processing where 14 * Optionally make use of a STREAMS module for input processing where
@@ -4277,27 +4277,27 @@ mk_utcinfo( @@ -4277,27 +4277,27 @@ mk_utcinfo(
4277 4277
4278 nc = snprintf( t, size, "UTC offset transition from %is to %is due to leap second %s", 4278 nc = snprintf( t, size, "UTC offset transition from %is to %is due to leap second %s",
4279 dtls, dtlsf, ( dtls < dtlsf ) ? "insertion" : "deletion" ); 4279 dtls, dtlsf, ( dtls < dtlsf ) ? "insertion" : "deletion" );
4280 if (nc < 0) 4280 if (nc < 0)
4281 nc = strlen(t); 4281 nc = strlen(t);
4282 else if (nc > size) 4282 else if (nc > size)
4283 nc = size; 4283 nc = size;
4284  4284
4285 snprintf( t + nc, size - nc, " at UTC midnight at the end of %s, %04i-%02i-%02i", 4285 snprintf( t + nc, size - nc, " at UTC midnight at the end of %s, %04i-%02i-%02i",
4286 daynames[tm->tm_wday], tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday ); 4286 daynames[tm->tm_wday], tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday );
4287 } 4287 }
4288 else 4288 else
4289 { 4289 {
4290 snprintf( t, size, "UTC offset parameter: %is, no leap second announced.\n", dtls ); 4290 snprintf( t, size, "UTC offset parameter: %is, no leap second announced.", dtls );
4291 } 4291 }
4292 4292
4293} 4293}
4294 4294
4295#ifdef CLOCK_MEINBERG 4295#ifdef CLOCK_MEINBERG
4296/**=========================================================================== 4296/**===========================================================================
4297 ** Meinberg GPS receiver support 4297 ** Meinberg GPS receiver support
4298 **/ 4298 **/
4299 4299
4300/*------------------------------------------------------------ 4300/*------------------------------------------------------------
4301 * gps16x_message - process messages from Meinberg GPS receiver 4301 * gps16x_message - process messages from Meinberg GPS receiver
4302 */ 4302 */
4303static void 4303static void