diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-11-27 20:50:12 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-11-27 20:50:12 +0000 |
commit | b0d554c4155060ed665844fdf7b2a08db9bb3356 (patch) | |
tree | d1236029c2ac147b49a2da74bf132c3f56619406 /perl-install/resize_fat | |
parent | c2b148e1e94892d8d72000ed087b607ae28b5808 (diff) | |
download | drakx-backup-do-not-use-b0d554c4155060ed665844fdf7b2a08db9bb3356.tar drakx-backup-do-not-use-b0d554c4155060ed665844fdf7b2a08db9bb3356.tar.gz drakx-backup-do-not-use-b0d554c4155060ed665844fdf7b2a08db9bb3356.tar.bz2 drakx-backup-do-not-use-b0d554c4155060ed665844fdf7b2a08db9bb3356.tar.xz drakx-backup-do-not-use-b0d554c4155060ed665844fdf7b2a08db9bb3356.zip |
perl_checker adaptations
Diffstat (limited to 'perl-install/resize_fat')
-rw-r--r-- | perl-install/resize_fat/c_rewritten.pm | 8 | ||||
-rw-r--r-- | perl-install/resize_fat/fat.pm | 9 | ||||
-rw-r--r-- | perl-install/resize_fat/io.pm | 6 |
3 files changed, 10 insertions, 13 deletions
diff --git a/perl-install/resize_fat/c_rewritten.pm b/perl-install/resize_fat/c_rewritten.pm index d74ecb5d3..1447c8da0 100644 --- a/perl-install/resize_fat/c_rewritten.pm +++ b/perl-install/resize_fat/c_rewritten.pm @@ -1,14 +1,14 @@ package resize_fat::c_rewritten; # $Id$ use strict; -use vars qw($VERSION @ISA); require DynaLoader; -@ISA = qw(DynaLoader); -$VERSION = '0.01'; +our @ISA = qw(DynaLoader); +our $VERSION = '0.01'; +our @EXPORT_OK = qw(next set_next); -bootstrap resize_fat::c_rewritten $VERSION; +resize_fat::c_rewritten->bootstrap($VERSION); 1; diff --git a/perl-install/resize_fat/fat.pm b/perl-install/resize_fat/fat.pm index bb762e28e..71c50790e 100644 --- a/perl-install/resize_fat/fat.pm +++ b/perl-install/resize_fat/fat.pm @@ -5,9 +5,7 @@ use strict; use resize_fat::any; use resize_fat::io; -use resize_fat::c_rewritten; - -1; +use resize_fat::c_rewritten qw(next set_next); sub read($) { my ($fs) = @_; @@ -97,9 +95,6 @@ sub endianness($$) { $r; } -*next = \&resize_fat::c_rewritten::next; -*set_next = \&resize_fat::c_rewritten::set_next; - sub get_free($) { @@ -136,3 +131,5 @@ sub set_available($$) { my ($fs, $cluster) = @_; set_next ($fs, $cluster, 0); } + +1; diff --git a/perl-install/resize_fat/io.pm b/perl-install/resize_fat/io.pm index 7643a0953..bd7d32263 100644 --- a/perl-install/resize_fat/io.pm +++ b/perl-install/resize_fat/io.pm @@ -61,11 +61,11 @@ sub check_mounted($) { } } -sub open($) { +sub open { my ($fs) = @_; check_mounted($fs->{device}); - sysopen F, $fs->{fs_name}, 2 or sysopen F, $fs->{fs_name}, 0 or die "error opening device $fs->{fs_name} for writing\n"; - $fs->{fd} = *F; + sysopen $fs->{fd}, $fs->{fs_name}, 2 or + sysopen $fs->{fd}, $fs->{fs_name}, 0 or die "error opening device $fs->{fs_name} for writing\n"; } |