mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	fix all warnings in routines add use warnings
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5151 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -21,7 +21,7 @@ require xCAT::Table;
 | 
			
		||||
use POSIX qw(ceil);
 | 
			
		||||
use Socket;
 | 
			
		||||
use strict;
 | 
			
		||||
#use warnings "all";
 | 
			
		||||
use warnings "all";
 | 
			
		||||
require xCAT::InstUtils;
 | 
			
		||||
require xCAT::Schema;
 | 
			
		||||
require Data::Dumper;
 | 
			
		||||
@@ -2135,15 +2135,15 @@ For an example
 | 
			
		||||
=cut
 | 
			
		||||
 | 
			
		||||
#-----------------------------------------------------------------------
 | 
			
		||||
%::PING_CACHE;
 | 
			
		||||
my %PING_CACHE;
 | 
			
		||||
sub isPingable
 | 
			
		||||
{
 | 
			
		||||
    my $ip = shift;
 | 
			
		||||
 | 
			
		||||
    my $rc;
 | 
			
		||||
    if ( exists $::PING_CACHE{ $ip})
 | 
			
		||||
    if ( exists $PING_CACHE{ $ip})
 | 
			
		||||
    {
 | 
			
		||||
         $rc = $::PING_CACHE{ $ip};
 | 
			
		||||
         $rc = $PING_CACHE{ $ip};
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
    {
 | 
			
		||||
@@ -2156,7 +2156,7 @@ sub isPingable
 | 
			
		||||
        {
 | 
			
		||||
            $rc = 0;
 | 
			
		||||
        }
 | 
			
		||||
        $::PING_CACHE{ $ip} = $rc;
 | 
			
		||||
        $PING_CACHE{ $ip} = $rc;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return ! $rc;    
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user