diff --git a/src/zscanner/scanner_functions.c b/src/zscanner/scanner_functions.c index f44d45d5de0b64b7bb4cd842e62fd4300c76910b..f7cf141f5298bbffdc9a952e892f21d273523959 100644 --- a/src/zscanner/scanner_functions.c +++ b/src/zscanner/scanner_functions.c @@ -766,16 +766,16 @@ int date_to_timestamp(uint8_t *buff, uint32_t *timestamp) } *timestamp = hour * 3600 + minute * 60 + second + - (days_across_years[year] + - days_across_months[month] + - day - 1 + leap_day) * 86400; + (days_across_years[year] + + days_across_months[month] + + day - 1 + leap_day) * 86400; return ZSCANNER_OK; } void wire_dname_to_str(const uint8_t *data, - const uint32_t data_len, - char *text) + const uint32_t data_len, + char *text) { uint32_t i = 0, text_len = 0; @@ -834,7 +834,7 @@ uint8_t loc64to8(uint64_t number) * \retval 0 if error. */ static uint32_t get_dname_length(const uint8_t *data, - const uint32_t data_len) + const uint32_t data_len) { uint8_t label_len = data[0]; uint32_t dname_len = 0; @@ -853,7 +853,7 @@ static uint32_t get_dname_length(const uint8_t *data, } label_len = data[dname_len]; - } + } dname_len++; // Last label length byte. @@ -875,7 +875,7 @@ static uint32_t get_dname_length(const uint8_t *data, * \retval 0 if error. */ static uint32_t get_naptr_header_length(const uint8_t *data, - const uint32_t data_len) + const uint32_t data_len) { uint32_t naptr_len = 0; @@ -911,9 +911,9 @@ static uint32_t get_naptr_header_length(const uint8_t *data, * \retval <0 if error. */ static int32_t get_block_length(const uint8_t *data, - const uint32_t data_len, - const uint32_t offset, - const int type) + const uint32_t data_len, + const uint32_t offset, + const int type) { uint32_t ret; @@ -931,11 +931,11 @@ static int32_t get_block_length(const uint8_t *data, case KNOT_RDATA_WF_NAPTR_HEADER: ret = get_naptr_header_length(data + offset, data_len - offset); - if (ret > 0) { - return ret; - } else { - return -1; - } + if (ret > 0) { + return ret; + } else { + return -1; + } case KNOT_RDATA_WF_REMAINDER: return data_len - offset; default: @@ -962,9 +962,9 @@ int find_rdata_blocks(scanner_t *s) position += *type; } else { ret = get_block_length(s->r_data, - s->r_data_length, - position, - *type); + s->r_data_length, + position, + *type); if (ret < 0) { return ZSCANNER_EUNKNOWN_BLOCK; }