aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-07-09 18:25:27 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-07-09 18:25:27 +0000
commit86eec704e23d0b47b16a40d59d4b36090b47be19 (patch)
treecff622f8a09aaeb824ec1f77a9b92b40776b57cd
parent587a134c46dff887ebe745a29059c9f3f0cd63c2 (diff)
downloaduserdrake-86eec704e23d0b47b16a40d59d4b36090b47be19.tar
userdrake-86eec704e23d0b47b16a40d59d4b36090b47be19.tar.gz
userdrake-86eec704e23d0b47b16a40d59d4b36090b47be19.tar.bz2
userdrake-86eec704e23d0b47b16a40d59d4b36090b47be19.tar.xz
userdrake-86eec704e23d0b47b16a40d59d4b36090b47be19.zip
(ValidInt) kill obvious warnings
-rwxr-xr-xuserdrake5
1 files changed, 2 insertions, 3 deletions
diff --git a/userdrake b/userdrake
index 4b292da..688fc5e 100755
--- a/userdrake
+++ b/userdrake
@@ -783,9 +783,8 @@ sub Edit {
$w->main
}
sub ValidInt {
- my $m = 1;
- foreach my $i (@_) { $i =~ /\d+/ or $m = 0 and last};
- return $m;
+ foreach my $i (@_) { $i =~ /\d+/ or return 0 };
+ return 1;
}
sub ConvTime {
my ($day, $month, $year) = @_;