Fixed some syntax issues.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 09 Oct 2001 15:15:24 +0000
changeset 106 fabd503dfde9
parent 105 842fb00667f9
child 107 4fd38db4d6ab
Fixed some syntax issues.
archivers/dir.c
--- a/archivers/dir.c	Wed Sep 26 03:11:55 2001 +0000
+++ b/archivers/dir.c	Tue Oct 09 15:15:24 2001 +0000
@@ -195,13 +195,13 @@
     BAIL_IF_MACRO(!DIR_isArchive(name, forWriting),
                     ERR_UNSUPPORTED_ARCHIVE, NULL);
 
-    retval = malloc(sizeof (DirHandle));
+    retval = (DirHandle *) malloc(sizeof (DirHandle));
     BAIL_IF_MACRO(retval == NULL, ERR_OUT_OF_MEMORY, NULL);
     retval->opaque = malloc(namelen + seplen + 1);
     if (retval->opaque == NULL)
     {
         free(retval);
-        BAIL_IF_MACRO(1, ERR_OUT_OF_MEMORY, NULL);
+        BAIL_MACRO(ERR_OUT_OF_MEMORY, NULL);
     } /* if */
 
         /* make sure there's a dir separator at the end of the string */