Clean up indented white space.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2013-07-06 10:10:59 +02:00
parent c9ac677c98
commit 93c609eee9
1 changed files with 4 additions and 4 deletions

8
tlv.c
View File

@ -52,7 +52,7 @@ static uint16_t flip16(uint16_t *p) {
} }
static int mgt_post_recv(struct management_tlv *m, uint16_t data_len, static int mgt_post_recv(struct management_tlv *m, uint16_t data_len,
struct tlv_extra *extra) struct tlv_extra *extra)
{ {
struct defaultDS *dds; struct defaultDS *dds;
struct currentDS *cds; struct currentDS *cds;
@ -75,7 +75,7 @@ static int mgt_post_recv(struct management_tlv *m, uint16_t data_len,
cd->physicalLayerProtocol = (struct PTPText *) buf; cd->physicalLayerProtocol = (struct PTPText *) buf;
buf += sizeof(struct PTPText); buf += sizeof(struct PTPText);
buf += cd->physicalLayerProtocol->length; buf += cd->physicalLayerProtocol->length;
cd->physicalAddress = (struct PhysicalAddress *) buf; cd->physicalAddress = (struct PhysicalAddress *) buf;
u16 = flip16(&cd->physicalAddress->length); u16 = flip16(&cd->physicalAddress->length);
@ -105,9 +105,9 @@ static int mgt_post_recv(struct management_tlv *m, uint16_t data_len,
extra_len = buf - m->data; extra_len = buf - m->data;
break; break;
case USER_DESCRIPTION: case USER_DESCRIPTION:
extra->cd.userDescription = (struct PTPText *) m->data; extra->cd.userDescription = (struct PTPText *) m->data;
extra_len = sizeof(struct PTPText); extra_len = sizeof(struct PTPText);
extra_len += extra->cd.userDescription->length; extra_len += extra->cd.userDescription->length;
break; break;
case DEFAULT_DATA_SET: case DEFAULT_DATA_SET:
if (data_len != sizeof(struct defaultDS)) if (data_len != sizeof(struct defaultDS))