{
zzip_plugin_io_t os = (o_modes & ZZIP_ALLOWREAL)
? zzip_get_default_io() : io;
- int fd = os->fd.open(filename, o_flags); /* io->fd.open */
+ int fd = (os->fd.open)(filename, o_flags); /* io->fd.open */
if (fd != -1)
{
memcpy(dir->realname + name_len, exx, exx_len); /* append! */
}
____;
- fd = io->fd.open(dir->realname, O_CREAT | O_TRUNC | O_WRONLY, o_mode);
+ fd = (io->fd.open)(dir->realname, O_CREAT | O_TRUNC | O_WRONLY, o_mode);
dir->realname[name_len] = '\0'; /* keep ummodified */
if (fd != -1)
{ dir->fd = fd; return dir; }
for (; *ext; ++ext)
{
strcpy(file + len, *ext);
- fd = io->fd.open(file, filemode);
+ fd = (io->fd.open)(file, filemode);
if (fd != -1)
return fd;
}
if (! ext)
ext = zzip_get_default_ext();
- fd = io->fd.open(filename, O_RDONLY | O_BINARY);
+ fd = (io->fd.open)(filename, O_RDONLY | O_BINARY);
if (fd != -1)
{
return zzip_dir_fdopen_ext_io(fd, e, ext, io);