chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] I tried to compile udev 050plus with the GCC 4.0 snapshot 200412119 and
[elogind.git]
/
udev_sysfs.c
diff --git
a/udev_sysfs.c
b/udev_sysfs.c
index d46f1f26d85bf94fc55eab0a425ba2f164aac15d..1b3603df6d0d018b815bf4488e58f3a2e3890811 100644
(file)
--- a/
udev_sysfs.c
+++ b/
udev_sysfs.c
@@
-381,7
+381,7
@@
int wait_for_devices_device(struct sysfs_device *devices_dev,
struct sysfs_class_device *wait_class_device_open(const char *path)
{
struct sysfs_class_device *wait_class_device_open(const char *path)
{
- struct sysfs_class_device *class_dev;
+ struct sysfs_class_device *class_dev
= NULL
;
int loop;
loop = WAIT_MAX_SECONDS * WAIT_LOOP_PER_SECOND;
int loop;
loop = WAIT_MAX_SECONDS * WAIT_LOOP_PER_SECOND;
@@
-393,7
+393,7
@@
struct sysfs_class_device *wait_class_device_open(const char *path)
usleep(1000 * 1000 / WAIT_LOOP_PER_SECOND);
}
usleep(1000 * 1000 / WAIT_LOOP_PER_SECOND);
}
- return
(class_dev)
;
+ return
class_dev
;
}
int wait_for_class_device(struct sysfs_class_device *class_dev,
}
int wait_for_class_device(struct sysfs_class_device *class_dev,
@@
-450,7
+450,7
@@
int wait_for_class_device(struct sysfs_class_device *class_dev,
struct sysfs_device *wait_devices_device_open(const char *path)
{
struct sysfs_device *wait_devices_device_open(const char *path)
{
- struct sysfs_device *devices_dev;
+ struct sysfs_device *devices_dev
= NULL
;
int loop;
loop = WAIT_MAX_SECONDS * WAIT_LOOP_PER_SECOND;
int loop;
loop = WAIT_MAX_SECONDS * WAIT_LOOP_PER_SECOND;
@@
-462,5
+462,5
@@
struct sysfs_device *wait_devices_device_open(const char *path)
usleep(1000 * 1000 / WAIT_LOOP_PER_SECOND);
}
usleep(1000 * 1000 / WAIT_LOOP_PER_SECOND);
}
- return
(devices_dev)
;
+ return
devices_dev
;
}
}