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] Make udev/udevstart be one binary
[elogind.git]
/
udev-add.c
diff --git
a/udev-add.c
b/udev-add.c
index 900e4795aa0d5bc977be9d88427ad781061fd34f..1f693297882430fa9f88c86ec958eff95b203022 100644
(file)
--- a/
udev-add.c
+++ b/
udev-add.c
@@
-316,7
+316,7
@@
error:
return -1;
}
return -1;
}
-static struct sysfs_class_device *get_class_dev(char *device_name)
+static struct sysfs_class_device *get_class_dev(c
onst c
har *device_name)
{
char dev_path[SYSFS_PATH_MAX];
struct sysfs_class_device *class_dev = NULL;
{
char dev_path[SYSFS_PATH_MAX];
struct sysfs_class_device *class_dev = NULL;
@@
-341,7
+341,7
@@
exit:
* If it doesn't happen in about 10 seconds, give up.
*/
#define SECONDS_TO_WAIT_FOR_FILE 10
* If it doesn't happen in about 10 seconds, give up.
*/
#define SECONDS_TO_WAIT_FOR_FILE 10
-static int sleep_for_file(char *path, char* file)
+static int sleep_for_file(c
onst c
har *path, char* file)
{
char filename[SYSFS_PATH_MAX + 6];
int loop = SECONDS_TO_WAIT_FOR_FILE;
{
char filename[SYSFS_PATH_MAX + 6];
int loop = SECONDS_TO_WAIT_FOR_FILE;
@@
-395,7
+395,7
@@
static int rename_net_if(struct udevice *dev, int fake)
return retval;
}
return retval;
}
-int udev_add_device(c
har *path,
char *subsystem, int fake)
+int udev_add_device(c
onst char *path, const
char *subsystem, int fake)
{
struct sysfs_class_device *class_dev;
struct udevice dev;
{
struct sysfs_class_device *class_dev;
struct udevice dev;