summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-04-19 02:26:47 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-04-19 02:26:47 +0000
commitaf48980719461555feaeae2056f887abcdb12e17 (patch)
tree636d6a3f1d0d48e3c06966f2274815ad6e74d5b6 /perlio.c
parentb93ec261ef434559b61f5e4489e279c3d26b5a6e (diff)
downloadperl-af48980719461555feaeae2056f887abcdb12e17.tar.gz
Compilation nit noticed by AIX compiler.
p4raw-id: //depot/perl@9751
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/perlio.c b/perlio.c
index c82da9bc32..a2289e3806 100644
--- a/perlio.c
+++ b/perlio.c
@@ -2093,12 +2093,13 @@ PerlIOStdio_close(PerlIO *f)
{
dTHX;
#ifdef HAS_SOCKS5_INIT
- int optval, optlen = sizeof(int);
+ int optval;
+ Sock_size_t optlen = sizeof(int);
#endif
FILE *stdio = PerlIOSelf(f,PerlIOStdio)->stdio;
return(
#ifdef HAS_SOCKS5_INIT
- (getsockopt(PerlIO_fileno(f), SOL_SOCKET, SO_TYPE, (char *)&optval, &optlen) < 0) ?
+ (getsockopt(PerlIO_fileno(f), SOL_SOCKET, SO_TYPE, (void *)&optval, &optlen) < 0) ?
PerlSIO_fclose(stdio) :
close(PerlIO_fileno(f))
#else