mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-24 08:01:03 +03:00
Applied patches from Markus Becker (thanks!)
* 0001-Trailing-whitespace-cleanup.patch * 0001-Went-back-to-2.65-of-autoconf.patch * 0002-Fix-compiler-warning-for-str.patch * added several files to Makefile target .gitignore
This commit is contained in:
1 parent
23fc3b0246
commit
758b7f775e
22 files changed
+474
-474
No files matched your search
@@ -1,17 +1,17 @@
|
||||
/* encode.h -- encoding and decoding of CoAP data types
|
||||
*
|
||||
* Copyright (C) 2010 Olaf Bergmann <bergmann@tzi.org>, Carsten Bormann
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
@@ -46,13 +46,13 @@ extern int coap_fls(unsigned int i);
|
||||
#define COAP_PSEUDOFP_ENCODE_8_4_DOWN(v,ls) (v < HIBIT ? v : (ls = coap_fls(v) - N, (v >> ls) & MMASK) + ls)
|
||||
#define COAP_PSEUDOFP_ENCODE_8_4_UP(v,ls,s) (v < HIBIT ? v : (ls = coap_fls(v) - N, (s = (((v + ((1<<E<<ls)-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.
|
||||
*/
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user