diff options
author | Björn Gustavsson <[email protected]> | 2014-02-04 15:04:24 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-02-04 17:09:01 +0100 |
commit | 21f2d57e5f7919d468fe89e38c52f978e15c1dfc (patch) | |
tree | d3e489527bc6dbc45e2d48813381cb1aa8410a08 /erts/emulator/drivers/common/gzio.c | |
parent | eec1d22c5aef21ad4606c79465084bbff46d42ee (diff) | |
download | otp-21f2d57e5f7919d468fe89e38c52f978e15c1dfc.tar.gz otp-21f2d57e5f7919d468fe89e38c52f978e15c1dfc.tar.bz2 otp-21f2d57e5f7919d468fe89e38c52f978e15c1dfc.zip |
gzio.c: Remove unnecessary usage of the OF() macro
Daniel Goertzen reported that commit 8a147a7365 broke building
of Erlang/OTP on Gentoo Linux because the macro OF() was missing.
Apparently, on Gentoo the OF() macro in zconf.h has been renamed
to _Z_OF() (to avoid polluting the global namespace).
Don't use the OF() macro in gzio.c since it no longer serves any
useful purpose (it provided compatibility with pre-ANSI/ISO C
compilers, but the rest of Erlang/OTP requires an ANSI/ISO C
compiler anyway).
Diffstat (limited to 'erts/emulator/drivers/common/gzio.c')
-rw-r--r-- | erts/emulator/drivers/common/gzio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/erts/emulator/drivers/common/gzio.c b/erts/emulator/drivers/common/gzio.c index 653f3954b1..8ec2c3f762 100644 --- a/erts/emulator/drivers/common/gzio.c +++ b/erts/emulator/drivers/common/gzio.c @@ -73,15 +73,15 @@ typedef struct gz_stream { int transparent; /* 1 if input file is not a .gz file */ char mode; /* 'w' or 'r' */ int position; /* Position (for seek) */ - int (*destroy)OF((struct gz_stream*)); /* Function to destroy + int (*destroy)(struct gz_stream*); /* Function to destroy * this structure. */ } gz_stream; -local ErtsGzFile gz_open OF((const char *path, const char *mode)); -local int get_byte OF((gz_stream *s)); -local void check_header OF((gz_stream *s)); -local int destroy OF((gz_stream *s)); -local uLong getLong OF((gz_stream *s)); +local ErtsGzFile gz_open (const char *path, const char *mode); +local int get_byte (gz_stream *s); +local void check_header (gz_stream *s); +local int destroy (gz_stream *s); +local uLong getLong (gz_stream *s); #ifdef UNIX /* |