From 317511e3ca28f71f9dedeb36abfcec1aa2f5497e Mon Sep 17 00:00:00 2001 From: Ralf Ramsauer Date: Sat, 11 Mar 2017 15:17:11 -0800 Subject: [PATCH] nitpick: coding style Signed-off-by: Ralf Ramsauer --- src/encoding.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/encoding.c b/src/encoding.c index 55b9e2e..1c7f249 100644 --- a/src/encoding.c +++ b/src/encoding.c @@ -19,10 +19,9 @@ #include "common.h" #include "encoding.h" -int -build_hostname(char *buf, size_t buflen, - const char *data, const size_t datalen, - const char *topdomain, const struct encoder *encoder, int maxlen) +int build_hostname(char *buf, size_t buflen, const char *data, + const size_t datalen, const char *topdomain, + const struct encoder *encoder, int maxlen) { size_t space; char *b; @@ -55,16 +54,15 @@ build_hostname(char *buf, size_t buflen, return space; } -int -unpack_data(char *buf, size_t buflen, char *data, size_t datalen, const struct encoder *enc) +int unpack_data(char *buf, size_t buflen, char *data, size_t datalen, + const struct encoder *enc) { if (!enc->eats_dots()) datalen = inline_undotify(data, datalen); return enc->decode(buf, &buflen, data, datalen); } -int -inline_dotify(char *buf, size_t buflen) +int inline_dotify(char *buf, size_t buflen) { unsigned dots; unsigned pos; @@ -101,8 +99,7 @@ inline_dotify(char *buf, size_t buflen) return total; } -int -inline_undotify(char *buf, size_t len) +int inline_undotify(char *buf, size_t len) { unsigned pos; unsigned dots;