From 8982ef9c4076c314db487f65210332e010938f3a Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sat, 25 Nov 2017 18:06:30 -0800 Subject: [PATCH] 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 --- tlv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tlv.c b/tlv.c index cef10a0..a5c2eb3 100644 --- a/tlv.c +++ b/tlv.c @@ -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);