Skip to contentSkip to conversation

master - cleanup: add __attribute__ ((nonnull(1)))

PATCH Zdenek Kabelac 1 participant 1 message Aug 23, 2012

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=132306c8887ac7279edd515a9f5c5de75dfc463a
Commit:        132306c8887ac7279edd515a9f5c5de75dfc463a
Parent:        fd417db274e9a75f33f661b475aeebfd3d9eae45
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sat Oct 23 23:45:50 2010 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Aug 23 14:37:52 2012 +0200

cleanup: add __attribute__ ((nonnull(1)))

---
 lib/device/dev-cache.h |    1 +
 libdm/regex/ttree.c    |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
lib/device/dev-cache.h +1 -0
index b684df6..f3511cc 100644
@@ -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
libdm/regex/ttree.c +1 -0
index ec97c98..00b371e 100644
@@ -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) {