mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-02 02:47:09 +03:00
minor fixes
This commit is contained in:
1 parent
588d53c909
commit
ae79b6a325
2 files changed
+8
No files matched your search
@@ -8,6 +8,9 @@
|
||||
|
||||
#include "hashkey.h"
|
||||
|
||||
/* Caution: When changing this, update COAP_DEFAULT_WKC_HASHKEY
|
||||
* accordingly (see int coap_hash_path());
|
||||
*/
|
||||
void
|
||||
coap_hash_impl(const unsigned char *s, unsigned int len, coap_key_t h) {
|
||||
size_t j;
|
||||
|
||||
@@ -33,6 +33,11 @@ void coap_hash_impl(const unsigned char *s, unsigned int len, coap_key_t h);
|
||||
|
||||
#define coap_hash(String,Length,Result) \
|
||||
coap_hash_impl((String),(Length),(Result))
|
||||
|
||||
/* This is used to control the pre-set hash-keys for resources. */
|
||||
#define __COAP_DEFAULT_HASH
|
||||
#else
|
||||
#undef __COAP_DEFAULT_HASH
|
||||
#endif /* coap_hash */
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user