Commit 5159837f authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: make state-pclock similar to state-slave (no effect)

(the previous commit picked two similar tivial changes)
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent de67b147
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
* Copyright (C) 2014 GSI (www.gsi.de) * Copyright (C) 2014 GSI (www.gsi.de)
* Author: Cesar Prados * Author: Cesar Prados
* Based on PTPd project v. 2.1.0 (see AUTHORS for details) * Based on PTPd project v. 2.1.0 (see AUTHORS for details)
*
* Released according to the GNU LGPL, version 2.1 or any later version. * Released according to the GNU LGPL, version 2.1 or any later version.
*/ */
...@@ -10,8 +11,7 @@ ...@@ -10,8 +11,7 @@
int pp_pclock(struct pp_instance *ppi, unsigned char *pkt, int plen) int pp_pclock(struct pp_instance *ppi, unsigned char *pkt, int plen)
{ {
int e = 0; /* error var, to check errors in msg handling */
int e = 0; /* error var, to check errors in msg handling */
MsgHeader *hdr = &ppi->received_ptp_header; MsgHeader *hdr = &ppi->received_ptp_header;
MsgPDelayRespFollowUp respFllw; MsgPDelayRespFollowUp respFllw;
int d1, d2; int d1, d2;
...@@ -99,7 +99,7 @@ int pp_pclock(struct pp_instance *ppi, unsigned char *pkt, int plen) ...@@ -99,7 +99,7 @@ int pp_pclock(struct pp_instance *ppi, unsigned char *pkt, int plen)
} else { } else {
pp_diag(ppi, frames, 2, "pp_pclock : " pp_diag(ppi, frames, 2, "pp_pclock : "
"PDelay Resp Follow doesn't match PDelay Req\n"); "PDelay Resp F-up doesn't match PDelay Req\n");
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment