From 5895eb31fe86619a9d9070e12bc0c970da9daf6b Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Thu, 4 Mar 2004 00:51:28 -0800 Subject: [PATCH] [PATCH] fix the build for older versions of gcc --- udev-add.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/udev-add.c b/udev-add.c index c28256a5..9562cb5d 100644 --- a/udev-add.c +++ b/udev-add.c @@ -226,10 +226,11 @@ static int create_node(struct udevice *dev, int fake) if (endptr[0] == '\0') uid = (uid_t) id; else { + struct passwd *pw; if (strncmp(dev->owner, LOCAL_USER, sizeof(LOCAL_USER)) == 0) set_to_local_user(dev->owner); - struct passwd *pw = getpwnam(dev->owner); + pw = getpwnam(dev->owner); if (pw == NULL) dbg("specified user unknown '%s'", dev->owner); else -- 2.39.5