From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Love Date: Sat, 18 Oct 2003 01:23:43 +0000 Subject: [patch] udev: trivial trivialities Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Yah yah, really trivial stuff... - get_class_device() doesn't need to be exported; it should be static - white space cleanup Patch is against udev-003. Robert Love udev-add.c | 2 +- udevdb.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff -urN udev-cvs/udev-add.c udev/udev-add.c --- udev-cvs/udev-add.c 2003-10-17 21:19:40.630564464 -0400 +++ udev/udev-add.c 2003-10-17 21:18:44.257134528 -0400 @@ -101,7 +101,7 @@ return retval; } -struct sysfs_class_device *get_class_dev(char *device_name) +static struct sysfs_class_device *get_class_dev(char *device_name) { char sysfs_path[SYSFS_PATH_MAX]; char dev_path[SYSFS_PATH_MAX]; diff -urN udev-cvs/udevdb.c udev/udevdb.c --- udev-cvs/udevdb.c 2003-10-16 21:04:04.000000000 -0400 +++ udev/udevdb.c 2003-10-17 21:16:31.596302040 -0400 @@ -125,13 +125,13 @@ data = tdb_fetch(udevdb, key); if (data.dptr = NULL || data.dsize = 0) return NULL; - + rec = (struct busdb_record *)malloc(sizeof(struct busdb_record)); if (rec = NULL) { free(data.dptr); return NULL; } - + memcpy(rec, data.dptr, sizeof(struct busdb_record)); free(data.dptr); ------------------------------------------------------- This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo The Event For Linux Datacenter Solutions & Strategies in The Enterprise Linux in the Boardroom; in the Front Office; & in the Server Room http://www.enterpriselinuxforum.com _______________________________________________ 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