From: Marek VavruĊĦa Date: Tue, 6 Oct 2015 16:44:41 +0000 (+0200) Subject: lib: cleanup X-Git-Tag: v1.0.0-beta1~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7a9ec0c557a93caa3bf1dadd8beb008ca15acfd;p=thirdparty%2Fknot-resolver.git lib: cleanup --- diff --git a/contrib/ccan/compiler/compiler.h b/contrib/ccan/compiler/compiler.h index e0c8dec86..bce4f25a1 100644 --- a/contrib/ccan/compiler/compiler.h +++ b/contrib/ccan/compiler/compiler.h @@ -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 */ diff --git a/modules/cachectl/cachectl.c b/modules/cachectl/cachectl.c index 5aeb3b61c..695f6f0b5 100644 --- a/modules/cachectl/cachectl.c +++ b/modules/cachectl/cachectl.c @@ -28,7 +28,6 @@ #include #include #include -#include #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';