udev: trivial trivialities
PATCH 1/1 udev: trivial trivialities
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(-)
udev-add.c +1 -1
@@ -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 ];
udevdb.c +2 -2
@@ -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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel