aboutsummaryrefslogtreecommitdiffstats
path: root/mkproto.pl
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-11-09 18:15:52 +0000
committerWayne Davison <wayned@samba.org>2007-11-09 18:15:52 +0000
commitab9661098674ee9896cade4c3098100b14c94c93 (patch)
tree4c46cd3b377590e51005407a94dd7143a09bbfcc /mkproto.pl
parentc8dccf8fb4949ad8f2c25f86808b517a5b30faf9 (diff)
downloadandroid_external_rsync-ab9661098674ee9896cade4c3098100b14c94c93.tar.gz
android_external_rsync-ab9661098674ee9896cade4c3098100b14c94c93.tar.bz2
android_external_rsync-ab9661098674ee9896cade4c3098100b14c94c93.zip
Use older open() style for compatibility with older perl versions.
Diffstat (limited to 'mkproto.pl')
-rw-r--r--mkproto.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkproto.pl b/mkproto.pl
index f453501b..e8f0e832 100644
--- 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;
}