summaryrefslogtreecommitdiff
path: root/udev_rules_parse.c
diff options
context:
space:
mode:
authorKay Sievers <kay@pim.off.vrfy.org>2005-10-27 20:32:07 +0200
committerKay Sievers <kay@pim.off.vrfy.org>2005-10-27 20:32:07 +0200
commit916c5e4725ef4558b752c6464deef6492c8ac31a (patch)
tree1a6a9ef2c3ac07cd5d355246ca66035663c65425 /udev_rules_parse.c
parentcf686d37b42ed49df9209d6630fd3292c54c6bde (diff)
fix the new warnings I asked for
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_rules_parse.c')
-rw-r--r--udev_rules_parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c
index c14164f1cc..7d1853acbe 100644
--- a/udev_rules_parse.c
+++ b/udev_rules_parse.c
@@ -437,7 +437,7 @@ static int add_to_rules(struct udev_rules *rules, char *line)
char owner[32];
uid_t uid = lookup_user(value);
dbg("replacing username='%s' by id=%i", value, uid);
- sprintf(owner, "%li", uid);
+ sprintf(owner, "%u", (unsigned int) uid);
add_rule_key(rule, &rule->owner, operation, owner);
continue;
}
@@ -456,7 +456,7 @@ static int add_to_rules(struct udev_rules *rules, char *line)
char group[32];
gid_t gid = lookup_group(value);
dbg("replacing groupname='%s' by id=%i", value, gid);
- sprintf(group, "%li", gid);
+ sprintf(group, "%u", (unsigned int) gid);
add_rule_key(rule, &rule->group, operation, group);
continue;
}