kconfig.pl: throw warnings into stderr instead of stdout
[openwrt.git] / scripts / kconfig.pl
index 53b8f11..d22af9f 100755 (executable)
@@ -27,7 +27,7 @@ sub load_config($) {
                        next;
                };
                /^#/ and next;
-               /^(.+)$/ and print "WARNING: can't parse line: $1\n";
+               /^(.+)$/ and warn "WARNING: can't parse line: $1\n";
        }
        return \%config;
 }
@@ -72,7 +72,7 @@ sub config_diff($$) {
        my %config;
        
        foreach my $config (keys %$cfg2) {
-               if (!$cfg1->{$config} or $cfg1->{$config} ne $cfg2->{$config}) {
+               if (!defined($cfg1->{$config}) or $cfg1->{$config} ne $cfg2->{$config}) {
                        $config{$config} = $cfg2->{$config};
                }
        }
This page took 0.020439 seconds and 4 git commands to generate.