summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2010-10-23 23:45:50 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2012-08-23 14:37:52 +0200
commit132306c8887ac7279edd515a9f5c5de75dfc463a (patch)
treeb951a408b1b6839c27408779ee53b00929ad4639
parentfd417db274e9a75f33f661b475aeebfd3d9eae45 (diff)
downloadlvm2-132306c8887ac7279edd515a9f5c5de75dfc463a.zip
lvm2-132306c8887ac7279edd515a9f5c5de75dfc463a.tar.gz
lvm2-132306c8887ac7279edd515a9f5c5de75dfc463a.tar.xz
cleanup: add __attribute__ ((nonnull(1)))
-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 b684df6..f3511cc 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 ec97c98..00b371e 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) {