Skip to content

Commit d8b6f68

Browse files
committed
PTP: Remove an unused macro
Moreover: Remove extra blank lines. [skip ci]
1 parent e4b31af commit d8b6f68

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

print-ptp.c

-9
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ static const struct tok ptp_msg_type[] = {
203203
{ 0, NULL}
204204
};
205205

206-
207206
#define PTP_TRUE 1
208207
#define PTP_FALSE !PTP_TRUE
209208

@@ -236,7 +235,6 @@ static const struct tok ptp_msg_type[] = {
236235
#define PTP_SECURITY_MASK 0x4000
237236
#define PTP_FLAGS_UNKNOWN_MASK 0x18C0
238237

239-
240238
static const struct tok ptp_flag_values[] = {
241239
{ PTP_L161_MASK ,"l1 61"},
242240
{ PTP_L1_59_MASK ,"l1 59"},
@@ -254,11 +252,6 @@ static const struct tok ptp_flag_values[] = {
254252
{0, NULL}
255253
};
256254

257-
#define PTP_PRINT_MSG_TYPE(e) \
258-
{ \
259-
ND_PRINT("(%s)", tok2str(ptp_msg_type, "unknown", e)); \
260-
}
261-
262255
static const char *p_porigin_ts = "preciseOriginTimeStamp";
263256
static const char *p_origin_ts = "originTimeStamp";
264257
static const char *p_recv_ts = "receiveTimeStamp";
@@ -272,8 +265,6 @@ static const char *p_recv_ts = "receiveTimeStamp";
272265
#define PTP_6BYTES_LEN sizeof(uint32_t)+sizeof(uint16_t)
273266
#define PTP_UINT64_LEN sizeof(uint64_t)
274267

275-
276-
277268
static void ptp_print_1(netdissect_options *ndo);
278269
static void ptp_print_2(netdissect_options *ndo, const u_char *bp, u_int len);
279270

0 commit comments

Comments
 (0)