From 914e5f6e143d7d9e5bd661218d503bd573163eb7 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Wed, 29 Aug 2007 18:51:07 +0300 Subject: 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 --- ubi-utils/src/ubimkvol.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ubi-utils/src/ubimkvol.c') diff --git a/ubi-utils/src/ubimkvol.c b/ubi-utils/src/ubimkvol.c index db57a93..ad58cc9 100644 --- a/ubi-utils/src/ubimkvol.c +++ b/ubi-utils/src/ubimkvol.c @@ -333,6 +333,14 @@ int main(int argc, char * const argv[]) goto out_libubi; } + /* + * This is hacky, but we want to wait until udev has created device + * nodes. There is probably better way do do this, though. + */ + if (system("udevsettle")) { + /* Well, this is to keep GCC silent */ + } + /* printf("Created volume %d, %lld bytes, type %s, name %s\n", vol_id, bytes, vol_type == UBI_DYNAMIC_VOLUME ? "dynamic" : "static", name); */ -- cgit v1.2.3