From: "Marco d'Itri" Date: Thu, 04 Mar 2004 01:15:21 +0000 Subject: udev 021 patches 2/2 Message-Id: <20040304011521.GB22285@wonderland.linux.it> MIME-Version: 1 Content-Type: multipart/mixed; boundary="J/dobhs11T7y2rNN" List-Id: To: linux-hotplug@vger.kernel.org --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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] --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=udevstart_no_retval 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; } --J/dobhs11T7y2rNN-- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel