linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev 021 patches 2/2
@ 2004-03-04  1:15 Marco d'Itri
  2004-03-04 19:11 ` Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Marco d'Itri @ 2004-03-04  1:15 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

udevstart_no_retval: currently udevstart will always return rc=22
because of the error handling code. I completely removed it because it
is not used, and returning a generic error to the init script is not
much useful anyway.

-- 
ciao, |
Marco | [4887 acJDyXc7CrEPQ]

[-- Attachment #2: udevstart_no_retval --]
[-- Type: text/plain, Size: 715 bytes --]

diff -ruNp udev-021.orig/udevstart.c udev-021/udevstart.c
--- udev-021.orig/udevstart.c	2004-03-03 01:01:33.000000000 +0100
+++ udev-021/udevstart.c	2004-03-03 15:41:34.000000000 +0100
@@ -78,12 +78,11 @@ static void udev_exec(const char *path, 
 	}
 }
 
-static int udev_scan(void)
+static void udev_scan(void)
 {
 	char *devpath;
 	DIR *dir;
 	struct dirent *dent;
-	int retval = -EINVAL;
 
 	devpath = "block";
 	dir = opendir(SYSBLOCK);
@@ -179,11 +178,6 @@ static int udev_scan(void)
 			}
 		}
 	}
-
-	if (retval > 0)
-		retval = 0;
-
-	return -retval;
 }
 
 
@@ -191,5 +185,7 @@ int main(int argc, char **argv, char **e
 {
 	init_logging("udevstart");
 
-	return udev_scan();
+	udev_scan();
+
+	return 0;
 }

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-03-04 19:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-04  1:15 udev 021 patches 2/2 Marco d'Itri
2004-03-04 19:11 ` Greg KH
2004-03-04 19:37 ` Marco d'Itri
2004-03-04 19:47 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).