summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/device/dev-cache.h1
-rw-r--r--libdm/regex/ttree.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/device/dev-cache.h b/lib/device/dev-cache.h
index b684df61..f3511cc5 100644
--- a/lib/device/dev-cache.h
+++ b/lib/device/dev-cache.h
@@ -42,6 +42,7 @@ int dev_cache_has_scanned(void);
int dev_cache_add_dir(const char *path);
int dev_cache_add_loopfile(const char *path);
+__attribute__((nonnull(1)))
struct device *dev_cache_get(const char *name, struct dev_filter *f);
// TODO
diff --git a/libdm/regex/ttree.c b/libdm/regex/ttree.c
index ec97c98c..00b371e8 100644
--- a/libdm/regex/ttree.c
+++ b/libdm/regex/ttree.c
@@ -28,6 +28,7 @@ struct ttree {
struct node *root;
};
+__attribute__((nonnull(1)))
static struct node **_lookup_single(struct node **c, unsigned int k)
{
while (*c) {