From 7c85d636e646a5c2021d1daaab10282f340e0134 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sun, 25 Dec 2011 16:37:15 +0100 Subject: invalidate rules and kmod index with 'udevadm control --reload' - rename --reload-rules to --reload - invalidate rules and databases only, delay parsing to the next event - enable debug output for test-builtin --- udev/udev-rules.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'udev/udev-rules.c') diff --git a/udev/udev-rules.c b/udev/udev-rules.c index 4226d0b4e0..aa750219da 100644 --- a/udev/udev-rules.c +++ b/udev/udev-rules.c @@ -1890,16 +1890,17 @@ struct udev_rules *udev_rules_new(struct udev *udev, int resolve_names) return rules; } -void udev_rules_unref(struct udev_rules *rules) +struct udev_rules *udev_rules_unref(struct udev_rules *rules) { if (rules == NULL) - return; + return NULL; free(rules->tokens); free(rules->buf); free(rules->trie_nodes); free(rules->uids); free(rules->gids); free(rules); + return NULL; } static int match_key(struct udev_rules *rules, struct token *token, const char *val) -- cgit v1.2.3-54-g00ecf