summaryrefslogtreecommitdiff
path: root/ubi-utils/src/libubimirror.c
diff options
context:
space:
mode:
authorAdrian Hunter <ext-adrian.hunter@nokia.com>2007-03-21 11:53:25 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-03-29 17:17:18 +0300
commit9c37b558705b776e51f7d522f376de019a6ea203 (patch)
treea5f7a547feeb817be1b3ed7c9ac362d2344f4bda /ubi-utils/src/libubimirror.c
parentdb0fa8cfb0fae8c07c4c88f73bbc71176df36d7c (diff)
UBI-Utils: Convert to new ubi library
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Diffstat (limited to 'ubi-utils/src/libubimirror.c')
-rw-r--r--ubi-utils/src/libubimirror.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ubi-utils/src/libubimirror.c b/ubi-utils/src/libubimirror.c
index e5715fc..d8ea548 100644
--- a/ubi-utils/src/libubimirror.c
+++ b/ubi-utils/src/libubimirror.c
@@ -22,7 +22,7 @@
#include <memory.h>
#include <fcntl.h>
-#include <libubi.h>
+#include <libubiold.h>
#include "ubimirror.h"
#define COMPARE_BUF_SIZE (128 * 1024)
@@ -207,11 +207,11 @@ ubimirror(uint32_t devno, int seqnum, uint32_t *ids, ssize_t ids_size,
fd_out = -1;
}
err:
- if (ulib != NULL)
- ubi_close(&ulib);
- if (fd_in != -1)
- ubi_vol_close(fd_in);
if (fd_out != -1)
ubi_vol_close(fd_out);
+ if (fd_in != -1)
+ ubi_vol_close(fd_in);
+ if (ulib != NULL)
+ ubi_close(&ulib);
return rc;
}