Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
Knot Resolver
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jonathan Coetzee
Knot Resolver
Commits
f7a9ec0c
Commit
f7a9ec0c
authored
Oct 06, 2015
by
Marek Vavruša
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: cleanup
parent
f46d836b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
14 deletions
+1
-14
contrib/ccan/compiler/compiler.h
contrib/ccan/compiler/compiler.h
+0
-12
modules/cachectl/cachectl.c
modules/cachectl/cachectl.c
+1
-2
No files found.
contrib/ccan/compiler/compiler.h
View file @
f7a9ec0c
...
...
@@ -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 */
modules/cachectl/cachectl.c
View file @
f7a9ec0c
...
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment