mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: add __attribute__ ((nonnull(1)))
This commit is contained in:
parent
fd417db274
commit
132306c888
@ -42,6 +42,7 @@ int dev_cache_has_scanned(void);
|
|||||||
|
|
||||||
int dev_cache_add_dir(const char *path);
|
int dev_cache_add_dir(const char *path);
|
||||||
int dev_cache_add_loopfile(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);
|
struct device *dev_cache_get(const char *name, struct dev_filter *f);
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
@ -28,6 +28,7 @@ struct ttree {
|
|||||||
struct node *root;
|
struct node *root;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
__attribute__((nonnull(1)))
|
||||||
static struct node **_lookup_single(struct node **c, unsigned int k)
|
static struct node **_lookup_single(struct node **c, unsigned int k)
|
||||||
{
|
{
|
||||||
while (*c) {
|
while (*c) {
|
||||||
|
Loading…
Reference in New Issue
Block a user