1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-26 14:04:03 +03:00

do not needlessly declare some local variables in udev_rules_parse.c as static

This commit is contained in:
Alan Jenkins 2008-09-01 19:46:19 +02:00 committed by Kay Sievers
parent 11d543c1ee
commit 0d1c29c3d1

View 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) struct udev_rule *udev_rules_iter_next(struct udev_rules *rules)
{ {
static struct udev_rule *rule; struct udev_rule *rule;
if (!rules) if (!rules)
return NULL; 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) 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; size_t start = rules->current;
next: next: