#endif
#ifndef lint
-FILE_RCSID("@(#)$Id: apprentice.c,v 1.61 2003/08/10 14:25:14 christos Exp $")
+FILE_RCSID("@(#)$Id: apprentice.c,v 1.62 2003/09/12 19:08:48 christos Exp $")
#endif /* lint */
#define EATAB {while (isascii((unsigned char) *l) && \
char buf[MAXPATHLEN];
char *dbname = mkdbname(fn, buf, sizeof(buf));
void *mm;
- int rv;
if (dbname == NULL)
return -1;
file_error(ms, "Cannot map `%s' (%s)", dbname, strerror(errno));
goto error;
}
- rv = 2;
+#define RET 2
#else
if ((mm = malloc((size_t)st.st_size)) == NULL) {
file_oomem(ms);
file_error(ms, "Read failed (%s)", strerror(errno));
goto error;
}
- rv = 1;
+#define RET 1
#endif
*magicp = mm;
(void)close(fd);
(*magicp)++;
if (needsbyteswap)
byteswap(*magicp, *nmagicp);
- return rv;
+ return RET;
error:
if (fd != -1)