diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-12-25 16:37:15 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-12-25 16:37:15 +0100 |
commit | 7c85d636e646a5c2021d1daaab10282f340e0134 (patch) | |
tree | 592115c42a6a3a1a670099ae92547ab33c84e0d7 /udev/udev-rules.c | |
parent | 779f4de1b93b77f84527d9916a1af462fc2579a1 (diff) |
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
Diffstat (limited to 'udev/udev-rules.c')
-rw-r--r-- | udev/udev-rules.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) |