This does not affect current behaviour. However, it is required to make the functions thread-safe. (I'm playing with a threaded udevd). Signed-off-by: Alan Jenkins <alan-jenkins@xxxxxxxxxxxxxx> diff --git a/udev/udev_rules_parse.c b/udev/udev_rules_parse.c index 705b3fe..90b139b 100644 --- a/udev/udev_rules_parse.c +++ b/udev/udev_rules_parse.c @@ -41,7 +41,7 @@ void udev_rules_iter_init(struct udev_rules *rules) struct udev_rule *udev_rules_iter_next(struct udev_rules *rules) { - static struct udev_rule *rule; + struct udev_rule *rule; if (!rules) return NULL; @@ -61,7 +61,7 @@ struct udev_rule *udev_rules_iter_next(struct udev_rules *rules) struct udev_rule *udev_rules_iter_label(struct udev_rules *rules, const char *label) { - static struct udev_rule *rule; + struct udev_rule *rule; size_t start = rules->current; next: -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html