Commit f7a9ec0c authored by Marek Vavruša's avatar Marek Vavruša

lib: cleanup

parent f46d836b
......@@ -228,16 +228,4 @@
#define WARN_UNUSED_RESULT
#endif
#endif
#ifndef NON_NULL
#if HAVE_ATTRIBUTE_NONNULL
/**
* NON_NULL - nonnull attribute specifies that some function parameters should be non-null pointers.
*/
#define NON_NULL(...) __attribute__((nonnull(__VA_ARGS__)))
#else
#define NON_NULL(...)
#endif
#endif
#endif /* CCAN_COMPILER_H */
......@@ -28,7 +28,6 @@
#include <time.h>
#include <libknot/descriptor.h>
#include <ccan/json/json.h>
#include <ccan/compiler/compiler.h>
#include "daemon/engine.h"
#include "lib/module.h"
......@@ -44,7 +43,7 @@
typedef int (*cache_cb_t)(struct kr_cache_txn *txn, namedb_iter_t *it, namedb_val_t *key, void *baton);
/** @internal Prefix walk. */
NON_NULL(1,2) static int cache_prefixed(struct engine *engine, const char *args, unsigned txn_flags, cache_cb_t cb, void *baton)
static int cache_prefixed(struct engine *engine, const char *args, unsigned txn_flags, cache_cb_t cb, void *baton)
{
/* Decode parameters */
uint8_t namespace = 'R';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment