shithub: lwext4

Download patch

ref: 4f30abc8be7aeebd0e2276623d37598b0ad626e4
parent: a997419af0b0974abce6cd984e3256776dde8c3f
author: gkostka <kostka.grzegorz@gmail.com>
date: Tue Jun 3 06:10:18 EDT 2014

Fix errno warning.
Fix generic demo return values.

--- a/demos/generic/main.c
+++ b/demos/generic/main.c
@@ -418,7 +418,7 @@
 
     if(!wr_buff || !rd_buff){
         printf("Read-Write allocation ERROR\n");
-        return EXIT_FAILURE;
+        return false;
     }
 
     ext4_dmask_set(EXT4_DEBUG_ALL);
@@ -519,7 +519,6 @@
 
     if(!mount())
         return EXIT_FAILURE;
-
 
     cleanup();
 
--- a/fs_test/lwext4_server.c
+++ b/fs_test/lwext4_server.c
@@ -26,7 +26,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <errno.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -53,6 +53,7 @@
 #include <io_raw.h>
 
 #include <ext4.h>
+#include <errno.h>
 
 static int winsock_init(void);
 static void winsock_fini(void);