1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

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

This commit is contained in:
Zdenek Kabelac 2010-10-23 23:45:50 +02:00
parent fd417db274
commit 132306c888
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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) {