]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ACTS refclock cleanup from Dave Mills
authorHarlan Stenn <stenn@ntp.org>
Wed, 19 Jan 2011 07:01:33 +0000 (02:01 -0500)
committerHarlan Stenn <stenn@ntp.org>
Wed, 19 Jan 2011 07:01:33 +0000 (02:01 -0500)
bk: 4d368c4dOLbhM9Y46lR0DW4YS33Pxg

ChangeLog
ntpd/refclock_acts.c

index f9d60de7beabe519d132bfb9f7f8736fe9e595c7..f7dcfceb12feab9460bf2b7c24290839716a9cd0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* ACTS refclock cleanup from Dave Mills.
 * Documentation updates from Dave Mills.
 (4.2.7p119) 2011/01/18 Released by Harlan Stenn <stenn@ntp.org>
 * added timespecops.{c,h} and tievalops.{c.h} to libntp and include
index 3080343ae113a4c43c03fbd2364eff1e2c5b3286..43f656240e5607a15dc224a5b1795816ee0858a3 100644 (file)
@@ -154,8 +154,7 @@ extern int async_write(int, const void *, unsigned int);
  * Service identifiers (message length)
  */
 #define REFACTS                "NIST"  /* NIST reference ID */
-#define LENACTSA       50      /* NIST format A */
-#define LENACTSB       48      /* NIST format B */
+#define LENACTS                50      /* NIST format A */
 #define REFUSNO                "USNO"  /* USNO reference ID */
 #define LENUSNO                20      /* USNO */
 #define REFPTB         "PTB\0" /* PTB/NPL reference ID */
@@ -770,7 +769,7 @@ acts_timecode(
         * ACTS format A: "jjjjj yy-mm-dd hh:mm:ss ds l uuu aaaaa
         * UTC(NIST) *".
         */
-       case LENACTSA:
+       case LENACTS:
                if (sscanf(str,
                    "%5ld %2d-%2d-%2d %2d:%2d:%2d %2d %1d %3lf %5lf %9s %c",
                    &mjd, &pp->year, &month, &day, &pp->hour,
@@ -793,31 +792,6 @@ acts_timecode(
                        return;
 
                break;
-       
-       /*
-        * ACTS format B: "jjjjj yy-mm-dd hh:mm:ss ds l uuu aaaaa
-        * UTC(NIST)".
-        */
-       case LENACTSB:
-               if (sscanf(str,
-                   "%5ld %2d-%2d-%2d %2d:%2d:%2d %2d %1d %3lf %5lf %9s",
-                   &mjd, &pp->year, &month, &day, &pp->hour,
-                   &pp->minute, &pp->second, &dst, &leap, &dut1,
-                   &msADV, utc) != 12) {
-                       refclock_report(peer, CEVNT_BADREPLY);
-                       return;
-               }
-               pp->day = ymd2yd(pp->year, month, day);
-               pp->leap = LEAP_NOWARNING;
-               if (leap == 1)
-                       pp->leap = LEAP_ADDSECOND;
-               else if (leap == 2)
-                       pp->leap = LEAP_DELSECOND;
-               memcpy(&pp->refid, REFACTS, 4);
-               if (up->msgcnt == 0)
-                       record_clock_stats(&peer->srcadr, str);
-               up->msgcnt++;
-               break;
 
        /*
         * USNO format: "jjjjj nnn hhmmss UTC"