diff options
author | mananth <mananth> | 2003-10-15 12:45:43 +0000 |
---|---|---|
committer | mananth <mananth> | 2003-10-15 12:45:43 +0000 |
commit | a7f04eab974502d3bd7180f0aff35d97901106ed (patch) | |
tree | d1d86b09a9c6fcaf5c724642ffdeb517c804de78 /lib/sysfs_device.c | |
parent | 4b726c94f0fcc8d16278fb4b20fab6ca8a4c177d (diff) | |
download | sysfsutils-a7f04eab974502d3bd7180f0aff35d97901106ed.tar.gz |
Change ver to 0.3.0
Remove perror usage
Fix warnings
Diffstat (limited to 'lib/sysfs_device.c')
-rw-r--r-- | lib/sysfs_device.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sysfs_device.c b/lib/sysfs_device.c index 16270cb..e212056 100644 --- a/lib/sysfs_device.c +++ b/lib/sysfs_device.c @@ -117,7 +117,6 @@ struct sysfs_device *sysfs_open_device(const unsigned char *path) { struct sysfs_device *dev = NULL; struct sysfs_directory *sdir = NULL; - unsigned char *p = NULL; if (path == NULL) { errno = EINVAL; @@ -305,7 +304,7 @@ struct sysfs_root_device *sysfs_open_root_device(const unsigned char *name) root = (struct sysfs_root_device *)calloc (1, sizeof(struct sysfs_root_device)); if (root == NULL) { - perror("calloc"); + dprintf("calloc failure\n"); return NULL; } rootdir = open_root_device_dir(name); @@ -355,7 +354,6 @@ struct sysfs_device *sysfs_open_device_by_id(const unsigned char *bus_id, { char sysfs_path[SYSFS_PATH_MAX], device_path[SYSFS_PATH_MAX]; struct sysfs_device *device = NULL; - struct stat astats; if (bus_id == NULL || bus == NULL) { errno = EINVAL; |