summaryrefslogtreecommitdiff
path: root/libbb/ubi.c
diff options
context:
space:
mode:
authorDenys Vlasenko2016-04-03 22:24:51 +0200
committerDenys Vlasenko2016-04-03 22:24:51 +0200
commit6aab9928dec29855bcee21bce163e5fdf7144350 (patch)
tree39cfa4f508f208ae093fefcd8b865a0cb36547e2 /libbb/ubi.c
parentb068cf2a7e036da8d0b3533b41886c5605c8139d (diff)
downloadbusybox-6aab9928dec29855bcee21bce163e5fdf7144350.zip
busybox-6aab9928dec29855bcee21bce163e5fdf7144350.tar.gz
whitespace and namespace cleanups
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/ubi.c')
-rw-r--r--libbb/ubi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/ubi.c b/libbb/ubi.c
index 7d3b295..34595d7 100644
--- a/libbb/ubi.c
+++ b/libbb/ubi.c
@@ -16,14 +16,14 @@
unsigned FAST_FUNC ubi_devnum_from_devname(const char *str)
{
- unsigned ubi_devnum;
+ unsigned ubi_devnum;
- if (sscanf(str, "/dev/ubi%u", &ubi_devnum) != 1)
- bb_error_msg_and_die("not an UBI device: '%s'", str);
+ if (sscanf(str, "/dev/ubi%u", &ubi_devnum) != 1)
+ bb_error_msg_and_die("not an UBI device: '%s'", str);
return ubi_devnum;
}
-int FAST_FUNC get_volid_by_name(unsigned ubi_devnum, const char *vol_name)
+int FAST_FUNC ubi_get_volid_by_name(unsigned ubi_devnum, const char *vol_name)
{
unsigned i;