]> err.no Git - systemd/commitdiff
do not needlessly declare some local variables in udev_rules_parse.c as static
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Mon, 1 Sep 2008 17:46:19 +0000 (19:46 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 1 Sep 2008 17:46:19 +0000 (19:46 +0200)
udev/udev_rules_parse.c

index 705b3feb04ac436b57b9525feebedbec52a7bf7f..90b139be4ba0e8206f3e0c6cd7b35fef1ff2fe3a 100644 (file)
@@ -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: