From 7ab013b8b727a52b67c3a20b3f90478072af50ca Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 9 Oct 2001 15:15:24 +0000 Subject: [PATCH] Fixed some syntax issues. --- archivers/dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archivers/dir.c b/archivers/dir.c index 27f037b2..298ad61a 100644 --- a/archivers/dir.c +++ b/archivers/dir.c @@ -195,13 +195,13 @@ static DirHandle *DIR_openArchive(const char *name, int forWriting) 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 */