summaryrefslogtreecommitdiff
path: root/appl/cmd/tail.b
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2008-01-16 13:39:58 +0000
committerCharles.Forsyth <devnull@localhost>2008-01-16 13:39:58 +0000
commit3f1f06c5d12b24c4061e5123acabf72348ff45a2 (patch)
treed40487b0f5d3a46c5e1cefe288f9a74b8494d9a7 /appl/cmd/tail.b
parentca1042d3d05e5e9b2b5094b04197c96ec3b34bfe (diff)
20080116-1340
Diffstat (limited to 'appl/cmd/tail.b')
-rw-r--r--appl/cmd/tail.b4
1 files changed, 2 insertions, 2 deletions
diff --git a/appl/cmd/tail.b b/appl/cmd/tail.b
index 07d900d1..af438296 100644
--- a/appl/cmd/tail.b
+++ b/appl/cmd/tail.b
@@ -57,7 +57,7 @@ init(nil: ref Draw->Context, argv: list of string)
else {
if((file=sys->open(hd argv,sys->OREAD)) == nil )
fatal(hd argv);
- (ok, stat) := sys->fstat(file);
+ (nil, stat) := sys->fstat(file);
seekable = sys->seek(file,big 0,sys->SEEKSTART) == big 0 && stat.length > big 0;
}
@@ -99,7 +99,7 @@ init(nil: ref Draw->Context, argv: list of string)
trunc(length : big) : sys->Dir
{
- (i,d):=sys->fstat(file);
+ (nil,d):=sys->fstat(file);
if(d.length < length)
d.length = tseek(big 0, sys->SEEKSTART);
return d;