X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Fregistry_url.h;h=5ac52f5a5512cf24c08386aa8779ccf98844d35c;hb=32e8eda4c4d6370e96233a69cab861b2ebb5cc9a;hp=34c1d189669cd412a69fc5f19a1eb659a7be765a;hpb=3e1a333c5749373c0471ad026427e83761fbf4c4;p=netdata.git diff --git a/src/registry_url.h b/src/registry_url.h index 34c1d189..5ac52f5a 100644 --- a/src/registry_url.h +++ b/src/registry_url.h @@ -22,11 +22,11 @@ typedef struct registry_url REGISTRY_URL; // REGISTRY_URL INDEX extern int registry_url_compare(void *a, void *b); -extern REGISTRY_URL *registry_url_index_del(REGISTRY_URL *u); -extern REGISTRY_URL *registry_url_index_add(REGISTRY_URL *u) __attribute__((returns_nonnull)); +extern REGISTRY_URL *registry_url_index_del(REGISTRY_URL *u) WARNUNUSED; +extern REGISTRY_URL *registry_url_index_add(REGISTRY_URL *u) NEVERNULL WARNUNUSED; // REGISTRY_URL MANAGEMENT -extern REGISTRY_URL *registry_url_get(const char *url, size_t urllen) __attribute__((returns_nonnull)); +extern REGISTRY_URL *registry_url_get(const char *url, size_t urllen) NEVERNULL; extern void registry_url_link(REGISTRY_URL *u); extern void registry_url_unlink(REGISTRY_URL *u);