summaryrefslogtreecommitdiff
path: root/ubi-utils/src/libubi.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-08-29 18:51:07 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-08-29 18:51:07 +0300
commit914e5f6e143d7d9e5bd661218d503bd573163eb7 (patch)
tree9835db1fe89bb79f9f75f03f02d1798afa29c646 /ubi-utils/src/libubi.c
parent3f171e39e8c17d673fc9dea3364857c7e611c626 (diff)
ubi-utils: get rid of compile warnings
Just silly hacks. Also remove udevsettle() invocation from UBI library. If it must be called, it is not library's business anyway. Wa added it to make scripts which use ubimkvol utility run, so it is the only caller that really needs this. So just move the cruft to the utility. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/src/libubi.c')
-rw-r--r--ubi-utils/src/libubi.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/ubi-utils/src/libubi.c b/ubi-utils/src/libubi.c
index 06cf52a..a028fc6 100644
--- a/ubi-utils/src/libubi.c
+++ b/ubi-utils/src/libubi.c
@@ -275,11 +275,6 @@ int ubi_mkvol(libubi_t desc, const char *node, struct ubi_mkvol_request *req)
if (!ret)
req->vol_id = r.vol_id;
-#if 1
- /* This is a hack to work around udev problems */
- system("udevsettle");
-#endif
-
close(fd);
return ret;
}