From 9ab6d050e68fd0dede141cd17b7018a35e518012 Mon Sep 17 00:00:00 2001 From: Carsten Schoenert Date: Sun, 15 Mar 2015 13:00:38 +0100 Subject: [PATCH] i/c/encode.h: whitespace cleanup, reformatting, no changes Just some cleanup like whitespace, punctiation marking and indentation issues. --- include/coap/encode.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/include/coap/encode.h b/include/coap/encode.h index bdb7aa56..351c8618 100644 --- a/include/coap/encode.h +++ b/include/coap/encode.h @@ -3,7 +3,7 @@ * Copyright (C) 2010--2012 Olaf Bergmann * * This file is part of the CoAP library libcoap. Please see - * README for terms of use. + * README for terms of use. */ #ifndef _COAP_ENCODE_H_ @@ -36,16 +36,15 @@ extern int coap_fls(unsigned int i); #define COAP_PSEUDOFP_ENCODE_8_4_UP(v,ls,s) (v < HIBIT ? v : (ls = coap_fls(v) - Nn, (s = (((v + ((1<> ls) & MMASK)), s == 0 ? HIBIT + ls + 1 : s + ls)) /** - * Decodes multiple-length byte sequences. buf points to an input byte - * sequence of length len. Returns the decoded value. + * Decodes multiple-length byte sequences. buf points to an input byte sequence + * of length len. Returns the decoded value. */ unsigned int coap_decode_var_bytes(unsigned char *buf,unsigned int len); /** - * Encodes multiple-length byte sequences. buf points to an output - * buffer of sufficient length to store the encoded bytes. val is - * the value to encode. Returns the number of bytes used to encode - * val or 0 on error. + * Encodes multiple-length byte sequences. buf points to an output buffer of + * sufficient length to store the encoded bytes. val is the value to encode. + * Returns the number of bytes used to encode val or 0 on error. */ unsigned int coap_encode_var_bytes(unsigned char *buf, unsigned int val);