summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorsascha <sascha@nomad.localdomain>2007-10-19 11:06:03 +0200
committersascha <sascha@nomad.localdomain>2007-10-19 11:06:03 +0200
commit003370b63a89cf9430c5fca96349b93553565c65 (patch)
tree935379f1d43564e1d24ae61f4f45504e60f117fe /lib
parent0bc812ff3fe7d5e536849c36c6335d51fab9fce8 (diff)
downloadbarebox-003370b63a89cf9430c5fca96349b93553565c65.tar.gz
barebox-003370b63a89cf9430c5fca96349b93553565c65.tar.xz
compile fix
Diffstat (limited to 'lib')
-rw-r--r--lib/driver.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/driver.c b/lib/driver.c
index 27b607511e..8510fd8ef1 100644
--- a/lib/driver.c
+++ b/lib/driver.c
@@ -47,7 +47,7 @@ struct device_d *get_device_by_id(const char *id)
return NULL;
}
-int get_free_deviceid(char *id, char *id_template)
+int get_free_deviceid(char *id, const char *id_template)
{
int i = 0;
@@ -252,11 +252,13 @@ static int do_devinfo_subtree(struct device_d *dev, int depth, char edge)
if (*dev->id)
printf("%c----%s\n", edge, dev->id);
else if (dev->type == DEVICE_TYPE_FS)
- printf("%c----filesystem: %s\n", edge, fsdev_get_mountpoint((struct fs_device_d *)dev->type_data));
+ printf("%c----filesystem: %s\n", edge,
+ fsdev_get_mountpoint((struct fs_device_d *)
+ dev->type_data));
if (!list_empty(&dev->children)) {
device_for_each_child(dev, child) {
- do_dev_subtree(child, depth + 1,
+ do_devinfo_subtree(child, depth + 1,
list_is_last(&child->sibling,
&dev->children) ? '`' : '|');
}