diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2006-09-25 10:35:48 +0300 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-09-25 07:12:36 +0000 |
commit | 6a1e1159a8a738e1607626a2dc2479f546ab4e49 (patch) | |
tree | 9abacff9c2883b0cbaf42758dac8feabd0d1691a /reentr.c | |
parent | 5bc10b2cfeb5ef2af5d606c83b73143a5ad28a8e (diff) | |
download | perl-6a1e1159a8a738e1607626a2dc2479f546ab4e49.tar.gz |
Re: Change 28877: [PATCH] deal with some gcc warnings
Message-ID: <45175CA4.3020900@iki.fi>
remove casts that were causing failure on FreeBSD -Duse64bitint, and
some other cleanups.
p4raw-id: //depot/perl@28886
Diffstat (limited to 'reentr.c')
-rw-r--r-- | reentr.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -44,7 +44,7 @@ Perl_reentrant_size(pTHX) { #ifdef HAS_GETGRNAM_R # if defined(HAS_SYSCONF) && defined(_SC_GETGR_R_SIZE_MAX) && !defined(__GLIBC__) PL_reentrant_buffer->_grent_size = sysconf(_SC_GETGR_R_SIZE_MAX); - if ((IV)PL_reentrant_buffer->_grent_size == (IV)-1) + if (PL_reentrant_buffer->_grent_size == -1) PL_reentrant_buffer->_grent_size = REENTRANTUSUALSIZE; # else # if defined(__osf__) && defined(__alpha) && defined(SIABUFSIZ) @@ -79,7 +79,7 @@ Perl_reentrant_size(pTHX) { #ifdef HAS_GETPWNAM_R # if defined(HAS_SYSCONF) && defined(_SC_GETPW_R_SIZE_MAX) && !defined(__GLIBC__) PL_reentrant_buffer->_pwent_size = sysconf(_SC_GETPW_R_SIZE_MAX); - if ((IV)PL_reentrant_buffer->_pwent_size == (IV)-1) + if (PL_reentrant_buffer->_pwent_size == -1) PL_reentrant_buffer->_pwent_size = REENTRANTUSUALSIZE; # else # if defined(__osf__) && defined(__alpha) && defined(SIABUFSIZ) @@ -101,7 +101,7 @@ Perl_reentrant_size(pTHX) { #ifdef HAS_GETSPNAM_R # if defined(HAS_SYSCONF) && defined(_SC_GETPW_R_SIZE_MAX) && !defined(__GLIBC__) PL_reentrant_buffer->_spent_size = sysconf(_SC_GETPW_R_SIZE_MAX); - if ((IV)PL_reentrant_buffer->_spent_size == (IV)-1) + if (PL_reentrant_buffer->_spent_size == -1) PL_reentrant_buffer->_spent_size = REENTRANTUSUALSIZE; # else # if defined(__osf__) && defined(__alpha) && defined(SIABUFSIZ) |