From: Richard C. <ric...@gm...> - 2018-01-02 04:06:01
|
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 <ric...@gm...> --- 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); -- 2.11.0 |