udev: fix some type sloppiness
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Sep 2018 16:59:54 +0000 (18:59 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 25 Sep 2018 07:20:16 +0000 (09:20 +0200)
commit614a8274f2898af0a68e6901feba0b7d21c79f47
tree70d2a58cba713dd1b3ba8e85b92eba6ecc03615a
parent6ac386855c8395029c76603b7d2542812afae0d8
udev: fix some type sloppiness

We use strtoul() which returns an "unsigned long", but then assign this
to int or unsigned in, i.e. drop 32bit silently on 64bit systems. Let's
clean this up a bit, and retain the right types.
src/udev/udev-builtin-net_id.c