tlv: Fix coding style.
We are programming C, not Java, and so opening braces of a function belong on a line all by themselves. Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
d34d253fb4
commit
8982ef9c40
3
tlv.c
3
tlv.c
|
@ -43,7 +43,8 @@ static void scaled_ns_h2n(ScaledNs *sns)
|
||||||
sns->fractional_nanoseconds = htons(sns->fractional_nanoseconds);
|
sns->fractional_nanoseconds = htons(sns->fractional_nanoseconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint16_t flip16(uint16_t *p) {
|
static uint16_t flip16(uint16_t *p)
|
||||||
|
{
|
||||||
uint16_t v;
|
uint16_t v;
|
||||||
memcpy(&v, p, sizeof(v));
|
memcpy(&v, p, sizeof(v));
|
||||||
v = htons(v);
|
v = htons(v);
|
||||||
|
|
Loading…
Reference in New Issue