From e308ebb70f9d1e389577c2a8829cf2d210cd6a19 Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Wed, 12 Nov 2003 03:50:33 -0800 Subject: [PATCH] [PATCH] fix udev-add.c to build properly with older versions of gcc. --- udev-add.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/udev-add.c b/udev-add.c index 9c546024..d20e96ee 100644 --- a/udev-add.c +++ b/udev-add.c @@ -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); -- 2.39.5