X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffstools.git;a=blobdiff_plain;f=libubi%2Flibubi.c;h=d1f2a8b143c2bfa3e3955d5a7fe1d63a489c8b4d;hp=3494f9dbdd558c94daea0924c1021db7d74513a1;hb=efacbcb4973161c12cc9630d243669845db41a17;hpb=e694872b52348ae7cd7e5a2df7a24b94f58acfd4;ds=sidebyside diff --git a/libubi/libubi.c b/libubi/libubi.c index 3494f9d..d1f2a8b 100644 --- a/libubi/libubi.c +++ b/libubi/libubi.c @@ -861,7 +861,7 @@ int ubi_remove_dev(libubi_t desc, const char *node, int ubi_dev) sys_errmsg("cannot open \"%s\"", node); return -1; } - ret = ioctl(fd, UBI_IOCDET, &ubi_dev); + ret = ioctl(fd, UBI_IOCFDET, &ubi_dev); if (ret == -1) goto out_close;