diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-02 00:48:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-02 00:48:56 +0000 |
commit | b4f316147600b29b68c7b4a1440753be2e4d4d85 (patch) | |
tree | 7c623297181a97d02ea7c873b1e8df34f28d55da /bin/ksh/shf.c | |
parent | b790821253b18e5408519e221871f17f7debaee8 (diff) |
use SEEK_* for lseek()
Diffstat (limited to 'bin/ksh/shf.c')
-rw-r--r-- | bin/ksh/shf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/shf.c b/bin/ksh/shf.c index 31bd0f39a86..1352a2f22aa 100644 --- a/bin/ksh/shf.c +++ b/bin/ksh/shf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: shf.c,v 1.14 2005/12/11 18:53:51 deraadt Exp $ */ +/* $OpenBSD: shf.c,v 1.15 2006/04/02 00:48:33 deraadt Exp $ */ /* * Shell file I/O routines @@ -285,7 +285,7 @@ shf_flush(struct shf *shf) if (shf->flags & SHF_READING) { shf->flags &= ~(SHF_EOF | SHF_READING); if (shf->rnleft > 0) { - lseek(shf->fd, (off_t) -shf->rnleft, 1); + lseek(shf->fd, (off_t) -shf->rnleft, SEEK_CUR); shf->rnleft = 0; shf->rp = shf->buf; } |