diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-02-01 10:37:11 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-02-01 10:37:11 +0000 |
commit | de175a032d27b2f22d2394b1c4b42734a211271d (patch) | |
tree | 654b97dcc30fb6f033d65b57a2c1b660b7bd2ef3 /Build/source/libs/zziplib/zziplib-0.13.58/zzip/plugin.c | |
parent | a01f17b2387fe42f2578c94d964f39a1e58a1e6f (diff) |
zziplib-0.13.58, minor build system cleanup
git-svn-id: svn://tug.org/texlive/trunk@16892 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/zziplib/zziplib-0.13.58/zzip/plugin.c')
-rw-r--r-- | Build/source/libs/zziplib/zziplib-0.13.58/zzip/plugin.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/Build/source/libs/zziplib/zziplib-0.13.58/zzip/plugin.c b/Build/source/libs/zziplib/zziplib-0.13.58/zzip/plugin.c index ad17adb6486..a7d77c060cd 100644 --- a/Build/source/libs/zziplib/zziplib-0.13.58/zzip/plugin.c +++ b/Build/source/libs/zziplib/zziplib-0.13.58/zzip/plugin.c @@ -1,3 +1,4 @@ + /* * Author: * Guido Draheim <guidod@gmx.de> @@ -28,22 +29,21 @@ zzip_off_t zzip_filesize(int fd) { - struct stat st; + struct stat st; - if (fstat(fd, &st) < 0) - return -1; + if (fstat(fd, &st) < 0) + return -1; # if defined DEBUG && ! defined _WIN32 - if (! st.st_size && st.st_blocks > 1) /* seen on some darwin 10.1 machines */ - fprintf(stderr, "broken fstat(2) ?? st_size=%ld st_blocks=%ld\n", - (long) st.st_size, (long) st.st_blocks); + if (! st.st_size && st.st_blocks > 1) /* seen on some darwin 10.1 machines */ + fprintf(stderr, "broken fstat(2) ?? st_size=%ld st_blocks=%ld\n", + (long) st.st_size, (long) st.st_blocks); # endif - return st.st_size; + return st.st_size; } -static const struct zzip_plugin_io default_io = -{ +static const struct zzip_plugin_io default_io = { &open, &close, &_zzip_read, @@ -58,18 +58,20 @@ static const struct zzip_plugin_io default_io = * wrapping the posix io file functions for actual file access. */ zzip_plugin_io_t -zzip_get_default_io() +zzip_get_default_io(void) { - return (zzip_plugin_io_t) &default_io; + return (zzip_plugin_io_t) & default_io; } /** * This function initializes the users handler struct to default values * being the posix io functions in default configured environments. */ -int zzip_init_io(zzip_plugin_io_handlers_t io, int flags) +int +zzip_init_io(zzip_plugin_io_handlers_t io, int flags) { - if (!io) { + if (! io) + { return ZZIP_ERROR; } memcpy(io, &default_io, sizeof(default_io)); |