Skip to content

Commit 2ce8ebb

Browse files
mhxjkeenan
authored andcommitted
IPC-SysV: Synch with CPAN release 2.09
From Changes: * Fix GitHub #8: Comparison between signed and unsigned integer * Merge PR #9: Fix compile warnings with -Wsign-compare * Merge PR #11: Avoid indirect call syntax Committer: Additional email address for contributor to keep porting tests happy
1 parent a5d5855 commit 2ce8ebb

File tree

13 files changed

+24
-23
lines changed

13 files changed

+24
-23
lines changed

Porting/Maintainers.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ package Maintainers;
668668
},
669669

670670
'IPC::SysV' => {
671-
'DISTRIBUTION' => 'MHX/IPC-SysV-2.08.tar.gz',
671+
'DISTRIBUTION' => 'MHX/IPC-SysV-2.09.tar.gz',
672672
'FILES' => q[cpan/IPC-SysV],
673673
'EXCLUDED' => [
674674
qw( const-c.inc

Porting/checkAUTHORS.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ sub _raw_address {
726726
+ perl5\100tux.freedom.nl
727727
mhx mhx-perl\100gmx.net
728728
+ mhx\100r2d2.(none)
729+
+ mhx\100cpan.org
729730
mst mst\100shadowcat.co.uk
730731
+ matthewt\100hercule.scsys.co.uk
731732
nicholas nick\100ccl4.org

cpan/IPC-SysV/SysV.xs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ memwrite(addr, sv, pos, size)
379379
char *caddr = (char *) sv2addr(addr);
380380
STRLEN len;
381381
const char *src = SvPV_const(sv, len);
382-
int n = ((int) len > size) ? size : (int) len;
382+
unsigned int n = ((unsigned int) len > size) ? size : (unsigned int) len;
383383
Copy(src, caddr + pos, n, char);
384384
if (n < size)
385385
{

cpan/IPC-SysV/lib/IPC/Msg.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use strict;
1515
use vars qw($VERSION);
1616
use Carp;
1717

18-
$VERSION = '2.08';
18+
$VERSION = '2.09';
1919

2020
# Figure out if we have support for native sized types
2121
my $N = do { my $foo = eval { pack "L!", 0 }; $@ ? '' : '!' };
@@ -42,7 +42,7 @@ my $N = do { my $foo = eval { pack "L!", 0 }; $@ ? '' : '!' };
4242
}
4343

4444
sub new {
45-
@_ == 3 || croak 'new IPC::Msg ( KEY , FLAGS )';
45+
@_ == 3 || croak 'IPC::Msg->new( KEY , FLAGS )';
4646
my $class = shift;
4747

4848
my $id = msgget($_[0],$_[1]);

cpan/IPC-SysV/lib/IPC/Semaphore.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use strict;
1616
use vars qw($VERSION);
1717
use Carp;
1818

19-
$VERSION = '2.08';
19+
$VERSION = '2.09';
2020

2121
# Figure out if we have support for native sized types
2222
my $N = do { my $foo = eval { pack "L!", 0 }; $@ ? '' : '!' };
@@ -39,7 +39,7 @@ my $N = do { my $foo = eval { pack "L!", 0 }; $@ ? '' : '!' };
3939
}
4040

4141
sub new {
42-
@_ == 4 || croak 'new ' . __PACKAGE__ . '( KEY, NSEMS, FLAGS )';
42+
@_ == 4 || croak __PACKAGE__ . '->new( KEY, NSEMS, FLAGS )';
4343
my $class = shift;
4444

4545
my $id = semget($_[0],$_[1],$_[2]);

cpan/IPC-SysV/lib/IPC/SharedMem.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use strict;
1515
use vars qw($VERSION);
1616
use Carp;
1717

18-
$VERSION = '2.08';
18+
$VERSION = '2.09';
1919

2020
# Figure out if we have support for native sized types
2121
my $N = do { my $foo = eval { pack "L!", 0 }; $@ ? '' : '!' };

cpan/IPC-SysV/lib/IPC/SysV.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use Config;
1818
require Exporter;
1919
@ISA = qw(Exporter);
2020

21-
$VERSION = '2.08';
21+
$VERSION = '2.09';
2222

2323
# To support new constants, just add them to @EXPORT_OK
2424
# and the C/XS code will be generated automagically.

cpan/IPC-SysV/t/ipcsysv.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use warnings;
1313

1414
our %Config;
1515
BEGIN {
16-
require Test::More; import Test::More;
17-
require Config; import Config;
16+
require Test::More; Test::More->import;
17+
require Config; Config->import;
1818

1919
if ($ENV{'PERL_CORE'} && $Config{'extensions'} !~ m[\bIPC/SysV\b]) {
2020
plan(skip_all => 'IPC::SysV was not built');

cpan/IPC-SysV/t/msg.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ BEGIN {
1818
@INC = '../lib' if -d '../lib' && -d '../ext';
1919
}
2020

21-
require Test::More; import Test::More;
22-
require Config; import Config;
21+
require Test::More; Test::More->import;
22+
require Config; Config->import;
2323

2424
if ($ENV{'PERL_CORE'} && $Config{'extensions'} !~ m[\bIPC/SysV\b]) {
2525
plan(skip_all => 'IPC::SysV was not built');
@@ -44,7 +44,7 @@ my $msq = sub {
4444
return $code->();
4545
}
4646
return $code->();
47-
}->(sub { new IPC::Msg(IPC_PRIVATE, S_IRWXU | S_IRWXG | S_IRWXO) });
47+
}->(sub { IPC::Msg->new(IPC_PRIVATE, S_IRWXU | S_IRWXG | S_IRWXO) });
4848

4949
unless (defined $msq) {
5050
my $info = "IPC::Msg->new failed: $!";

cpan/IPC-SysV/t/pod.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ BEGIN {
1818
@INC = '../lib' if -d '../lib' && -d '../ext';
1919
}
2020

21-
require Test::More; import Test::More;
22-
require Config; import Config;
21+
require Test::More; Test::More->import;
22+
require Config; Config->import;
2323

2424
if ($ENV{'PERL_CORE'} && $Config{'extensions'} !~ m[\bIPC/SysV\b]) {
2525
plan(skip_all => 'IPC::SysV was not built');
@@ -51,12 +51,12 @@ eval {
5151
require Test::Pod;
5252
$Test::Pod::VERSION >= 0.95
5353
or die "Test::Pod version only $Test::Pod::VERSION";
54-
import Test::Pod tests => scalar @pods;
54+
Test::Pod->import( tests => scalar @pods );
5555
};
5656

5757
if ($@) {
5858
require Test::More;
59-
import Test::More skip_all => "testing pod requires Test::Pod";
59+
Test::More->import( skip_all => "testing pod requires Test::Pod" );
6060
}
6161
else {
6262
for my $pod (@pods) {

cpan/IPC-SysV/t/podcov.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ BEGIN {
1818
@INC = '../lib' if -d '../lib' && -d '../ext';
1919
}
2020

21-
require Test::More; import Test::More;
22-
require Config; import Config;
21+
require Test::More; Test::More->import;
22+
require Config; Config->import;
2323

2424
if ($ENV{'PERL_CORE'} && $Config{'extensions'} !~ m[\bIPC/SysV\b]) {
2525
plan(skip_all => 'IPC::SysV was not built');

cpan/IPC-SysV/t/sem.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ BEGIN {
1818
@INC = '../lib' if -d '../lib' && -d '../ext';
1919
}
2020

21-
require Test::More; import Test::More;
22-
require Config; import Config;
21+
require Test::More; Test::More->import;
22+
require Config; Config->import;
2323

2424
if ($ENV{'PERL_CORE'} && $Config{'extensions'} !~ m[\bIPC/SysV\b]) {
2525
plan(skip_all => 'IPC::SysV was not built');

cpan/IPC-SysV/t/shm.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ BEGIN {
1818
@INC = '../lib' if -d '../lib' && -d '../ext';
1919
}
2020

21-
require Test::More; import Test::More;
22-
require Config; import Config;
21+
require Test::More; Test::More->import;
22+
require Config; Config->import;
2323

2424
if ($ENV{'PERL_CORE'} && $Config{'extensions'} !~ m[\bIPC/SysV\b]) {
2525
plan(skip_all => 'IPC::SysV was not built');

0 commit comments

Comments
 (0)