]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ntp.c
CI: Add warning exemptions for Sun C (suncc-5.14) on Solaris 10
[tcpdump] / print-ntp.c
index a927e7bef8ee73a575f743f6c7a0bbfa1ab10b02..5f791feb676865bc92026f03bcb77651c0be5295 100644 (file)
@@ -66,7 +66,7 @@
  * |                                                               |
  * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  * |                                                               |
- * |                   Originate Timestamp (64)                    |
+ * |                     Origin Timestamp (64)                     |
  * |                                                               |
  * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  * |                                                               |
@@ -277,7 +277,7 @@ ntp_time_print(netdissect_options *ndo,
                 * modified or extended in the future, and unregistered kiss
                 * codes are possible (and are being seen in the field).
                 */
-               if (!ND_ASCII_ISPRINT((bp->refid)[0])) {
+               if (!ND_ASCII_ISPRINT(GET_U_1(bp->refid))) {
                        ND_PRINT("(unspec)");
                        ND_TCHECK_4(bp->refid);
                } else {
@@ -309,7 +309,7 @@ ntp_time_print(netdissect_options *ndo,
        ND_PRINT("\n\t  Reference Timestamp:  ");
        p_ntp_time(ndo, &(bp->ref_timestamp));
 
-       ND_PRINT("\n\t  Originator Timestamp: ");
+       ND_PRINT("\n\t  Origin Timestamp:     ");
        p_ntp_time(ndo, &(bp->org_timestamp));
 
        ND_PRINT("\n\t  Receive Timestamp:    ");