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 <richardcoch...@gmail.com> --- 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 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel