mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-22 22:03:43 +03:00
[PATCH] fix udev-add.c to build properly with older versions of gcc.
This commit is contained in:
parent
da86c7f02f
commit
e308ebb70f
@ -74,6 +74,8 @@ static int create_node(struct udevice *dev)
|
||||
{
|
||||
char filename[255];
|
||||
int retval = 0;
|
||||
uid_t uid = 0;
|
||||
gid_t gid = 0;
|
||||
dev_t res;
|
||||
|
||||
strncpy(filename, udev_root, sizeof(filename));
|
||||
@ -133,9 +135,6 @@ static int create_node(struct udevice *dev)
|
||||
dbg("mknod(%s, %#o, %u, %u) failed with error '%s'",
|
||||
filename, dev->mode, dev->major, dev->minor, strerror(errno));
|
||||
|
||||
uid_t uid = 0;
|
||||
gid_t gid = 0;
|
||||
|
||||
if (*dev->owner) {
|
||||
char *endptr;
|
||||
unsigned long id = strtoul(dev->owner, &endptr, 10);
|
||||
|
Loading…
x
Reference in New Issue
Block a user