Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8dccf8
)
Use older open() style for compatibility with older perl versions.
author
Wayne Davison
<wayned@samba.org>
Fri, 9 Nov 2007 18:15:52 +0000
(18:15 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 9 Nov 2007 18:15:52 +0000
(18:15 +0000)
mkproto.pl
patch
|
blob
|
blame
|
history
diff --git
a/mkproto.pl
b/mkproto.pl
index
f453501
..
e8f0e83
100644
(file)
--- a/
mkproto.pl
+++ b/
mkproto.pl
@@
-2,7
+2,7
@@
use strict;
my $old_protos = '';
-if (open(IN, '
<', '
proto.h')) {
+if (open(IN, 'proto.h')) {
$old_protos = join('', <IN>);
close IN;
}
@@
-45,7
+45,7
@@
while (<>) {
}
if ($old_protos ne $protos) {
- open(OUT, '>
', '
proto.h') or die $!;
+ open(OUT, '>proto.h') or die $!;
print OUT $protos;
close OUT;
}