diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-08-29 18:51:07 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-08-29 18:51:07 +0300 |
commit | 914e5f6e143d7d9e5bd661218d503bd573163eb7 (patch) | |
tree | 9835db1fe89bb79f9f75f03f02d1798afa29c646 /ubi-utils/src/ubimkvol.c | |
parent | 3f171e39e8c17d673fc9dea3364857c7e611c626 (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/ubimkvol.c')
-rw-r--r-- | ubi-utils/src/ubimkvol.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); */ |