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
Richard Cochran 2017-11-25 18:06:30 -08:00
parent d34d253fb4
commit 8982ef9c40
1 changed files with 2 additions and 1 deletions

3
tlv.c
View File

@ -43,7 +43,8 @@ static void scaled_ns_h2n(ScaledNs *sns)
sns->fractional_nanoseconds = htons(sns->fractional_nanoseconds);
}
static uint16_t flip16(uint16_t *p) {
static uint16_t flip16(uint16_t *p)
{
uint16_t v;
memcpy(&v, p, sizeof(v));
v = htons(v);