Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : libs/eet

Dir     : e17/libs/eet/src/lib


Modified Files:
        Eet.h eet_lib.c 


Log Message:
Return error

===================================================================
RCS file: /cvs/e/e17/libs/eet/src/lib/Eet.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- Eet.h       20 May 2006 02:44:24 -0000      1.32
+++ Eet.h       31 May 2006 19:13:51 -0000      1.33
@@ -75,6 +75,7 @@
        EET_ERROR_BAD_OBJECT,
        EET_ERROR_EMPTY,
        EET_ERROR_NOT_WRITABLE,
+       EET_ERROR_OUT_OF_MEMORY,
        EET_ERROR_WRITE_ERROR,
        EET_ERROR_WRITE_ERROR_FILE_TOO_BIG,
        EET_ERROR_WRITE_ERROR_IO_ERROR,
===================================================================
RCS file: /cvs/e/e17/libs/eet/src/lib/eet_lib.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -3 -r1.61 -r1.62
--- eet_lib.c   20 May 2006 02:44:24 -0000      1.61
+++ eet_lib.c   31 May 2006 19:13:51 -0000      1.62
@@ -308,7 +308,7 @@
    i2 = htonl(i1);
    head[2] = (int)i2;
    fseek(ef->fp, 0, SEEK_SET);
-   if (fwrite(head, 12, 1, ef->fp) != 1) return;
+   if (fwrite(head, 12, 1, ef->fp) != 1) goto write_error;
    offset = 12;
    for (i = 0; i < num; i++)
      {
@@ -323,7 +323,7 @@
                  name_size = strlen(efn->name);
                  buf_size = 20 + name_size;
                  buf = alloca(buf_size);
-                 if (!buf) return;
+                 if (!buf) return EET_ERROR_OUT_OF_MEMORY;
                  i1 = (unsigned long int)efn->offset;
                  i2 = htonl(i1);
                  *((int *)(buf + 0)) = (int)i2;




_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to